fix: read investment year of time-dependent config

This commit is contained in:
Fabian Neumann 2023-08-09 11:01:58 +02:00
parent c32d5249e1
commit 9a68730745

View File

@ -2883,8 +2883,8 @@ def add_industry(n, costs):
p_set=p_set,
)
primary_steel = snakemake.config["industry"]["St_primary_fraction"]
dri_steel = snakemake.config["industry"]["DRI_fraction"]
primary_steel = get(snakemake.config["industry"]["St_primary_fraction"], investment_year)
dri_steel = get(snakemake.config["industry"]["DRI_fraction"], investment_year)
bof_steel = primary_steel - dri_steel
if bof_steel > 0: