incorporate network plots in rule

This commit is contained in:
Fabian Neumann 2024-01-25 20:37:33 +01:00
parent ffd4e1f1af
commit 3f112f0e95
3 changed files with 15 additions and 23 deletions

View File

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

View File

@ -40,9 +40,6 @@ Upcoming Release
* The rule ``plot_network`` has been split into separate rules for plotting * The rule ``plot_network`` has been split into separate rules for plotting
electricity, hydrogen and gas networks. electricity, hydrogen and gas networks.
* Added new collection rule ``plot_all`` which should be used instead of
``plot_summary``. This allows running the rule :mod:`make_summary` and
:mod:`plot_summary` even if the network plotting rules fail.
PyPSA-Eur 0.9.0 (5th January 2024) PyPSA-Eur 0.9.0 (5th January 2024)
================================== ==================================

View File

@ -202,26 +202,6 @@ rule plot_summary:
"../scripts/plot_summary.py" "../scripts/plot_summary.py"
rule plot_all:
input:
RESULTS + "graphs/costs.pdf",
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",
**config["scenario"]
),
expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-ch4_network_{planning_horizons}.pdf",
**config["scenario"]
),
STATISTICS_BARPLOTS = [ STATISTICS_BARPLOTS = [
"capacity_factor", "capacity_factor",
"installed_capacity", "installed_capacity",