[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] 2024-01-12 20:34:54 +00:00
parent 0a789a22dc
commit 0bac08934a
2 changed files with 6 additions and 5 deletions

View File

@ -796,7 +796,7 @@ def add_pipe_retrofit_constraint(n):
def add_co2_atmosphere_constraint(n, snapshots):
glcs = n.global_constraints[n.global_constraints.type=="co2_atmosphere"]
glcs = n.global_constraints[n.global_constraints.type == "co2_atmosphere"]
if glcs.empty:
return
@ -817,6 +817,7 @@ def add_co2_atmosphere_constraint(n, snapshots):
n.model.add_constraints(lhs <= rhs, name=f"GlobalConstraint-{name}")
def extra_functionality(n, snapshots):
"""
Collects supplementary constraints which will be passed to