forked from open-energy-transition/pypsa-eur
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcollect.smk
More file actions
116 lines (94 loc) · 2.91 KB
/
Copy pathcollect.smk
File metadata and controls
116 lines (94 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# SPDX-FileCopyrightText: Contributors to PyPSA-Eur <https://github.com/pypsa/pypsa-eur>
#
# SPDX-License-Identifier: MIT
localrules:
all,
cluster_networks,
prepare_elec_networks,
prepare_sector_networks,
solve_elec_networks,
solve_sector_networks,
rule cluster_networks:
input:
expand(
resources("networks/base_s_{clusters}.nc"),
**config["scenario"],
run=config["run"]["name"],
),
rule prepare_elec_networks:
input:
expand(
resources("networks/base_s_{clusters}_elec_{opts}.nc"),
**config["scenario"],
run=config["run"]["name"],
),
rule prepare_sector_networks:
input:
expand(
resources(
"networks/base_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc"
),
**config["scenario"],
run=config["run"]["name"],
),
rule solve_elec_networks:
input:
expand(
RESULTS + "networks/base_s_{clusters}_elec_{opts}.nc",
**config["scenario"],
run=config["run"]["name"],
),
rule solve_sector_networks:
input:
expand(
RESULTS
+ "networks/base_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc",
**config["scenario"],
run=config["run"]["name"],
),
rule solve_sector_networks_perfect:
input:
expand(
RESULTS
+ "maps/base_s_{clusters}_{opts}_{sector_opts}-costs-all_{planning_horizons}.pdf",
**config["scenario"],
run=config["run"]["name"],
),
rule plot_balance_maps:
input:
lambda w: expand(
(
RESULTS
+ "maps/base_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}-balance_map_{carrier}.pdf"
),
**config["scenario"],
run=config["run"]["name"],
carrier=config_provider("plotting", "balance_map", "bus_carriers")(w),
),
rule plot_power_networks_clustered:
input:
expand(
resources("maps/power-network-s-{clusters}.pdf"),
**config["scenario"],
run=config["run"]["name"],
),
rule clean_pecd_datas:
input:
lambda w: expand(
resources("pecd_data_{technology}_{planning_horizons}.csv"),
**config["scenario"],
run=config["run"]["name"],
technology=config_provider(
"electricity", "pecd_renewable_profiles", "technologies"
)(w),
),
rule build_renewable_profiles_pecds:
input:
lambda w: expand(
resources("profile_pecd_{clusters}_{technology}.nc"),
**config["scenario"],
run=config["run"]["name"],
technology=config_provider(
"electricity", "pecd_renewable_profiles", "technologies"
)(w),
),