pypsa-eur/rules/collect.smk

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

104 lines
2.5 KiB
Plaintext
Raw Normal View History

# SPDX-FileCopyrightText: : 2023 The PyPSA-Eur Authors
#
# SPDX-License-Identifier: MIT
2023-03-08 16:46:14 +00:00
localrules:
all,
cluster_networks,
extra_components_networks,
prepare_elec_networks,
2023-03-08 16:46:14 +00:00
prepare_sector_networks,
solve_elec_networks,
solve_sector_networks,
plot_networks,
rule all:
input:
2023-08-15 13:44:54 +00:00
expand(RESULTS + "graphs/costs.pdf", run=config["run"]["name"]),
default_target: True
rule cluster_networks:
input:
2023-08-15 13:02:41 +00:00
expand(
RESOURCES + "networks/elec_s{simpl}_{clusters}.nc",
**config["scenario"],
run=config["run"]["name"]
),
rule extra_components_networks:
input:
expand(
2023-08-15 13:02:41 +00:00
RESOURCES + "networks/elec_s{simpl}_{clusters}_ec.nc",
**config["scenario"],
run=config["run"]["name"]
),
rule prepare_elec_networks:
input:
expand(
RESOURCES + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
),
rule prepare_sector_networks:
input:
expand(
RESULTS
+ "prenetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
),
rule solve_elec_networks:
input:
expand(
RESULTS + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
),
rule solve_sector_networks:
input:
expand(
RESULTS
+ "postnetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
),
rule plot_networks:
input:
expand(
RESULTS
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-costs-all_{planning_horizons}.pdf",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
2023-03-08 16:46:14 +00:00
),
rule validate_elec_networks:
input:
expand(
RESULTS
+ "figures/.statistics_plots_elec_s{simpl}_{clusters}_ec_l{ll}_{opts}",
2023-08-15 13:02:41 +00:00
**config["scenario"],
run=config["run"]["name"]
),
expand(
RESULTS
+ "figures/.validation_{kind}_plots_elec_s{simpl}_{clusters}_ec_l{ll}_{opts}",
**config["scenario"],
2023-08-15 13:02:41 +00:00
run=config["run"]["name"],
kind=["production", "prices", "cross_border"]
),