Skip to content

Commit

Permalink
Add {sector_opts} wildcard to snapshot_weightings output (#1307)
Browse files Browse the repository at this point in the history
This restores the functionality of time-aggregation wildcards for
sector-coupled networks.
  • Loading branch information
koen-vg authored Sep 18, 2024
1 parent 9420c90 commit bb8363a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules/build_sector.smk
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,15 @@ rule time_aggregation:
),
output:
snapshot_weightings=resources(
"snapshot_weightings_base_s_{clusters}_elec_l{ll}_{opts}.csv"
"snapshot_weightings_base_s_{clusters}_elec_l{ll}_{opts}_{sector_opts}.csv"
),
threads: 1
resources:
mem_mb=5000,
log:
logs("time_aggregation_base_s_{clusters}_elec_l{ll}_{opts}.log"),
logs("time_aggregation_base_s_{clusters}_elec_l{ll}_{opts}_{sector_opts}.log"),
benchmark:
benchmarks("time_aggregation_base_s_{clusters}_elec_l{ll}_{opts}")
benchmarks("time_aggregation_base_s_{clusters}_elec_l{ll}_{opts}_{sector_opts}")
conda:
"../envs/environment.yaml"
script:
Expand Down Expand Up @@ -1021,7 +1021,7 @@ rule prepare_sector_network:
**rules.cluster_gas_network.output,
**rules.build_gas_input_locations.output,
snapshot_weightings=resources(
"snapshot_weightings_base_s_{clusters}_elec_l{ll}_{opts}.csv"
"snapshot_weightings_base_s_{clusters}_elec_l{ll}_{opts}_{sector_opts}.csv"
),
retro_cost=lambda w: (
resources("retro_cost_base_s_{clusters}.csv")
Expand Down

0 comments on commit bb8363a

Please sign in to comment.