time_aggregation: optional rule inputs need [] not None

This commit is contained in:
Fabian Neumann 2024-05-23 21:52:09 +02:00
parent 2f0a4ca3f5
commit 31e41f5f5d

View File

@ -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(