set generator baseyear p_nom to p_nom_min
This commit is contained in:
parent
180d93951d
commit
c24b7f657b
@ -272,9 +272,11 @@ 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_min"] = capacity.loc[
|
n.generators.loc[already_build, "p_nom"] = \
|
||||||
already_build.str.replace(name_suffix, "")
|
n.generators.loc[already_build, "p_nom_min"] = \
|
||||||
].values
|
capacity.loc[
|
||||||
|
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