From 9a68730745a92252337337f3e0c9bc89d8a01436 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 9 Aug 2023 11:01:58 +0200 Subject: [PATCH] fix: read investment year of time-dependent config --- scripts/prepare_sector_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index d680da24..528eb32c 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -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: