diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 3212c2ff..ba2fac7f 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -132,7 +132,7 @@ def _add_land_use_constraint(n): "offwind-dc", "offwind-float", ]: - + ext_i = (n.generators.carrier == carrier) & ~n.generators.p_nom_extendable existing = ( n.generators.loc[ext_i, "p_nom"] @@ -172,7 +172,7 @@ def _add_land_use_constraint_m(n, planning_horizons, config): "offwind-ac", "offwind-dc", ]: - + existing = n.generators.loc[n.generators.carrier == carrier, "p_nom"] ind = list( {i.split(sep=" ")[0] + " " + i.split(sep=" ")[1] for i in existing.index}