From d2f8dc25fd3fa7497d3c3c8b6a7d820f593fc09b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Sep 2023 19:24:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/prepare_network.py | 2 +- scripts/solve_network.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare_network.py b/scripts/prepare_network.py index 59668453..f2c6556e 100755 --- a/scripts/prepare_network.py +++ b/scripts/prepare_network.py @@ -310,7 +310,7 @@ if __name__ == "__main__": time_seg = time_seg_wildcard or time_seg_config if time_seg: solver_name = snakemake.config["solving"]["solver"]["name"] - n = apply_time_segmentation(n, time_seg.replace("seg",""), solver_name) + n = apply_time_segmentation(n, time_seg.replace("seg", ""), solver_name) Co2L_config = snakemake.params.co2limit_enable Co2L_wildcard, co2limit_wildcard = find_opt(opts, "Co2L") diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 963a85a9..012e440b 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -602,7 +602,7 @@ def extra_functionality(n, snapshots): EQ_wildcard = get_opt(opts, r"^EQ+[0-9]*\.?[0-9]+(c|)") EQ_o = EQ_wildcard or EQ_config if EQ_o: - add_EQ_constraints(n, EQ_o.replace("EQ","")) + add_EQ_constraints(n, EQ_o.replace("EQ", "")) add_battery_constraints(n) add_pipe_retrofit_constraint(n)