From 31e41f5f5dda0754fc89a255231285c665666164 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 23 May 2024 21:52:09 +0200 Subject: [PATCH] time_aggregation: optional rule inputs need [] not None --- rules/build_sector.smk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/build_sector.smk b/rules/build_sector.smk index d9e11895..2101deb7 100644 --- a/rules/build_sector.smk +++ b/rules/build_sector.smk @@ -870,12 +870,12 @@ rule time_aggregation: hourly_heat_demand_total=lambda w: ( resources("hourly_heat_demand_total_elec_s{simpl}_{clusters}.nc") if config_provider("sector", "heating")(w) - else None + else [] ), solar_thermal_total=lambda w: ( resources("solar_thermal_total_elec_s{simpl}_{clusters}.nc") if config_provider("sector", "solar_thermal")(w) - else None + else [] ), output: snapshot_weightings=resources(