From 1d832edba4a1dc7a3ed9cf27e07dde43e2eebbfd Mon Sep 17 00:00:00 2001 From: Eddy-JV Date: Tue, 11 Jun 2024 16:52:01 +0200 Subject: [PATCH] Add Params to build_temperature_profiles --- Snakefile | 2 ++ scripts/build_temperature_profiles.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Snakefile b/Snakefile index 1e3a7423..e97e507e 100644 --- a/Snakefile +++ b/Snakefile @@ -430,6 +430,8 @@ rule build_heat_demand: rule build_temperature_profiles: + params: + snapshots= config["snapshots"], input: pop_layout_total="resources/population_shares/pop_layout_total.nc", pop_layout_urban="resources/population_shares/pop_layout_urban.nc", diff --git a/scripts/build_temperature_profiles.py b/scripts/build_temperature_profiles.py index cfb1df24..c32c69f7 100644 --- a/scripts/build_temperature_profiles.py +++ b/scripts/build_temperature_profiles.py @@ -20,7 +20,7 @@ ) sets_path_to_root("pypsa-earth-sec") - time = pd.date_range(freq="h", **snakemake.config["snapshots"]) + time = pd.date_range(freq="h", **snakemake.params.snapshots) cutout_path = ( snakemake.input.cutout ) # os.path.abspath(snakemake.config["atlite"]["cutout"])