diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bb35b53..cf811240 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: # Make docstrings PEP 257 compliant - repo: https://github.com/PyCQA/docformatter - rev: v1.7.3 + rev: v1.7.4 hooks: - id: docformatter args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"] diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 1a7e4641..f7ab724c 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -152,7 +152,7 @@ def prepare_network( if "clip_p_max_pu" in solve_opts: for df in ( n.generators_t.p_max_pu, - n.generators_t.p_min_pu, + n.generators_t.p_min_pu, n.storage_units_t.inflow, ): df.where(df > solve_opts["clip_p_max_pu"], other=0.0, inplace=True)