Skip to content

Commit

Permalink
time_aggregation: optional rule inputs need [] not None
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed May 23, 2024
1 parent 2f0a4ca commit 31e41f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/build_sector.smk
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 31e41f5

Please sign in to comment.