[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
bcef24f913
commit
47889d728f
@ -132,7 +132,7 @@ def _add_land_use_constraint(n):
|
|||||||
"offwind-dc",
|
"offwind-dc",
|
||||||
"offwind-float",
|
"offwind-float",
|
||||||
]:
|
]:
|
||||||
|
|
||||||
ext_i = (n.generators.carrier == carrier) & ~n.generators.p_nom_extendable
|
ext_i = (n.generators.carrier == carrier) & ~n.generators.p_nom_extendable
|
||||||
existing = (
|
existing = (
|
||||||
n.generators.loc[ext_i, "p_nom"]
|
n.generators.loc[ext_i, "p_nom"]
|
||||||
@ -172,7 +172,7 @@ def _add_land_use_constraint_m(n, planning_horizons, config):
|
|||||||
"offwind-ac",
|
"offwind-ac",
|
||||||
"offwind-dc",
|
"offwind-dc",
|
||||||
]:
|
]:
|
||||||
|
|
||||||
existing = n.generators.loc[n.generators.carrier == carrier, "p_nom"]
|
existing = n.generators.loc[n.generators.carrier == carrier, "p_nom"]
|
||||||
ind = list(
|
ind = list(
|
||||||
{i.split(sep=" ")[0] + " " + i.split(sep=" ")[1] for i in existing.index}
|
{i.split(sep=" ")[0] + " " + i.split(sep=" ")[1] for i in existing.index}
|
||||||
|
Loading…
Reference in New Issue
Block a user