Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
#- id: end-of-file-fixer
Expand All @@ -9,11 +9,11 @@ repos:
- id: check-added-large-files
args: ['--maxkb=15000']
- repo: https://github.com/fsfe/reuse-tool
rev: v1.0.0
rev: v6.1.2
hooks:
- id: reuse
- repo: https://github.com/psf/black
rev: 22.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/aflc/pre-commit-jupyter
Expand Down
6 changes: 3 additions & 3 deletions scripts/nearoptimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def make_mga_model(n, sns):
# clip marginal cost
threshold = 0.05
n.generators.loc[n.generators.marginal_cost <= threshold, "marginal_cost"] = 0.0
n.storage_units.loc[
n.storage_units.marginal_cost <= threshold, "marginal_cost"
] = 0.0
n.storage_units.loc[n.storage_units.marginal_cost <= threshold, "marginal_cost"] = (
0.0
)

n = solve_network(
n,
Expand Down