From 707adcec69d13e6c1e628fb80ebb7cf64c5aff82 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 26 Jan 2024 09:15:04 +0100 Subject: [PATCH] all: make H2 and CH4 maps dependent on network config --- Snakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Snakefile b/Snakefile index 2021b49f..211e7540 100644 --- a/Snakefile +++ b/Snakefile @@ -86,12 +86,16 @@ rule all: ), expand( RESULTS - + "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-h2_network_{planning_horizons}.pdf", + + "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-h2_network_{planning_horizons}.pdf" + if config["sector"]["H2_network"] + else [], **config["scenario"] ), expand( RESULTS - + "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-ch4_network_{planning_horizons}.pdf", + + "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-ch4_network_{planning_horizons}.pdf" + if config["sector"]["gas_network"] + else [], **config["scenario"] ), default_target: True