[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c24b7f657b
commit
5168b3fe0b
@ -272,11 +272,9 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
|
|||||||
|
|
||||||
# this is for the year 2020
|
# this is for the year 2020
|
||||||
if not already_build.empty:
|
if not already_build.empty:
|
||||||
n.generators.loc[already_build, "p_nom"] = \
|
n.generators.loc[already_build, "p_nom"] = n.generators.loc[
|
||||||
n.generators.loc[already_build, "p_nom_min"] = \
|
already_build, "p_nom_min"
|
||||||
capacity.loc[
|
] = capacity.loc[already_build.str.replace(name_suffix, "")].values
|
||||||
already_build.str.replace(name_suffix, "")
|
|
||||||
].values
|
|
||||||
new_capacity = capacity.loc[new_build.str.replace(name_suffix, "")]
|
new_capacity = capacity.loc[new_build.str.replace(name_suffix, "")]
|
||||||
|
|
||||||
if "m" in snakemake.wildcards.clusters:
|
if "m" in snakemake.wildcards.clusters:
|
||||||
|
Loading…
Reference in New Issue
Block a user