[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0a789a22dc
commit
0bac08934a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user