postprocess: keep network plotting triggers in make_summary

This commit is contained in:
Fabian Neumann 2024-01-26 17:05:38 +01:00
parent b73c614f5b
commit f84e73006f
2 changed files with 23 additions and 23 deletions

View File

@ -75,29 +75,6 @@ if config["foresight"] == "perfect":
rule all: rule all:
input: input:
RESULTS + "graphs/costs.pdf", RESULTS + "graphs/costs.pdf",
expand(
RESULTS + "maps/power-network-s{simpl}-{clusters}.pdf",
**config["scenario"]
),
expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-costs-all_{planning_horizons}.pdf",
**config["scenario"]
),
expand(
RESULTS
+ "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"
if config["sector"]["gas_network"]
else [],
**config["scenario"]
),
default_target: True default_target: True

View File

@ -158,6 +158,29 @@ rule make_summary:
costs="data/costs_{}.csv".format(config["costs"]["year"]) costs="data/costs_{}.csv".format(config["costs"]["year"])
if config["foresight"] == "overnight" if config["foresight"] == "overnight"
else "data/costs_{}.csv".format(config["scenario"]["planning_horizons"][0]), else "data/costs_{}.csv".format(config["scenario"]["planning_horizons"][0]),
expand(
RESULTS + "maps/power-network-s{simpl}-{clusters}.pdf",
**config["scenario"]
),
costs_plot=expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-costs-all_{planning_horizons}.pdf",
**config["scenario"]
),
h2_plot=expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-h2_network_{planning_horizons}.pdf"
if config["sector"]["H2_network"]
else [],
**config["scenario"]
),
ch4_plot=expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-ch4_network_{planning_horizons}.pdf"
if config["sector"]["gas_network"]
else [],
**config["scenario"]
),
output: output:
nodal_costs=RESULTS + "csvs/nodal_costs.csv", nodal_costs=RESULTS + "csvs/nodal_costs.csv",
nodal_capacities=RESULTS + "csvs/nodal_capacities.csv", nodal_capacities=RESULTS + "csvs/nodal_capacities.csv",