From ecbb228a08f19f408b941cd6d206bf0866117c1c Mon Sep 17 00:00:00 2001 From: Amos Schledorn <60692940+amos-schledorn@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:43:06 +0200 Subject: [PATCH] Update scripts/build_central_heating_temperature_profiles/run.py Co-authored-by: Fabian Neumann --- scripts/build_central_heating_temperature_profiles/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_central_heating_temperature_profiles/run.py b/scripts/build_central_heating_temperature_profiles/run.py index ab9d72ca0..49576b4b2 100644 --- a/scripts/build_central_heating_temperature_profiles/run.py +++ b/scripts/build_central_heating_temperature_profiles/run.py @@ -216,7 +216,7 @@ def scale_temperature_to_investment_year( return_temperature_investment_year = scale_temperature_to_investment_year( temperature_baseyear=snakemake.params.return_temperature_central_heating_baseyear, relative_annual_temperature_reduction=snakemake.params.relative_annual_temperature_reduction, - investment_year=int(snakemake.wildcards.planning_horizons[-4:]), + investment_year=int(snakemake.wildcards.planning_horizons), current_year=int(snakemake.params.energy_totals_year), )