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), )