[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-09-29 19:24:53 +00:00
parent 4ac664b871
commit d2f8dc25fd
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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)