Commit 4541286
feat: introduce PEMMDB data and tyndp trajectories (#97)
* feat: add clean rule for pemmdb capacity and must-run data
* feat: add placeholder for tyndp trajectories
* feat: add retrieve rule for tyndp pemmdb data
* fix: add safe pyear to clean_tyndp_hydro_inflows.py
* fix: improve input_pemmdb_data handling for disabled feature
* fix: typo in clean hydro inflows param
* feat: add handling of must-runs for DE and GA after 2030 and small fixes
* feat: add capacities for other non-RES
* feat: refactor workflow to split into clean rules for each technology and build rule to collect the data in one file per planning year
* feat: add pemmdb profiles that combine p_min_pu and p_max_pu profiles
* feat: refactor clean_pemmdb scripts into modular functions for improved readability and improve error handling
* feat: generalise tyndp data retrieval
(cherry picked from commit ce66349d5dca6bb5328a011190a939695fa9db88)
* doc: add release note
* fix: resolve to support relative path
* fix: resolve to support relative path
* fix: keep rootpath
* Revert "fix: keep rootpath"
This reverts commit 0cd9505.
* refactor: remove unused rootpath
* feat: add processing of renewable capacities
* feat: minor improvements to processing of renewable capacities
* feat: include RES PEMMDB capacities and profiles in workflow
* feat: add Other RES PEMMDB capacities and profiles
* feat: add pemmdb subfolder in resources
* feat: add collect rule for pemmdb_datas
* feat: include processing of electrolyser data
* fix: increase latency wait to 10s to avoid missing directory in CI
* feat: include processing of battery capacities, update configs and fix type hints
* feat: include processing of DSR capacities and profiles
* feat: process and clean tyndp trajectories
* feat: add tyndp trajectories into workflow
* feat: separate e_nom information to separate column
* fix: add missing trajectories file to retrieve bundle rule output
* feat: add mapping from PEMMDB carriers to a tyndp carrier name and index carrier
* feat: ignore index when saving csv files
* feat: ignore index when saving csv files
* fix: bunch of minor fixes
* feat: use tyndp_technology_map.csv for PECD carrier mapping
* feat: remove spaces from pemmdb technology wildcards
* fix: add fix for no h2 interzonal connections in NT+ scenario
* feat: map carrier names for investment dataset trajectory file
* ci: introduce multiple retries to hydro and pemmdb clean rules after retrieve
* feat: process trajectories to only include values for DE and GA for after 2030 apart from Nuclear
* fix for removed spaces in technology wildcards
* fix PV carrier mapping
* feat: refactor for consolidated reading and processing of pemmdb data in one rule (#116)
* feat: refactor to read full set of pemmdb data and consolidate processing of different technologies in one rule
* doc: add new nprocesses parameter for pemmdb data reading to documentation
* fix: correct processing of different price bands for Other Non-RES data
* fix: improve performance of profile merging by using pandas instead of xarray
* fix: improve performance of reading by only reading required sheets
* fix: use config_provider for threads definition
* use vectorized function instead of loop
* move convert_units to _helpers
* fix: fix for thermal profiles DE and GA after 2030
* doc: add release note
* doc: update feature's development status in documentation and readme
* feat: remove outdated clean pemmdb capacities and profiles scripts
* feat: addition to use tyndp_technology_map.csv for PECD carrier mapping
* doc: update electricity.csv
* fix: minor fixes from code review
* fix: remove unnecessary lambda
* apply code suggestion
Co-authored-by: Jonas Hörsch <coroa@posteo.de>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: adjust use of convert_units to new function parameters
* feat: reduce pemmdb inputs in prepare_sector_network to available pemmdb years
* sort index in thermal profiles for more efficient indexing
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply suggestions from code review
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* doc: change description of pemmdb feature to clarify processing
* feat: specify 16 GB resources for build_pemmdb_data rule
* fix: fix missing wildcard argument to input_pemmdb_data
* doc: add missing config options to electricity.csv
* feat: include trajectories for DE and GA for 2030
* reuse: add tyndp_technology_map.csv to REUSE.toml
* doc: update retrieve rule documentation
* feat: include hydrogen in tyndp pemmdb mapping
* feat: update typehints for safe pyear
* doc: update docstring of build_tyndp_trajectories.py
* feat: improve map_tyndp_carrier_names and introduce drop_merge_columns parameter
* feat: improve robustness of snapshot filtering
* feat: update pemmdb sheet mapping
* doc: add missing rules to preparation.rst
* fix: rename UK to GB in build_tyndp_trajectories.py
* feat: consolidate pemmdb datas and trajectories in one collect rule
* doc: include todo into PR template to document new rules
* feat: minor improvement in parameter naming
* doc: use consistent imperative style in docstrings as per PEP 257
* feat: use pattern matching to extract type and unit information from RES index
* feat: various minor improvements and bug fixes to build_pemmdb_data.py
* feat: add validate profile to filter out profiles with default PyPSA values to significantly reduce netcdf file
* feat: rename index_year variable
* feat: bundle processing of thermal technologies
* doc: update output format description for pemmdb profiles
* feat: improve on reduce pemmdb inputs in prepare_sector_network to available pemmdb years
* Apply suggestions from code review
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: move and rename helper functions in build_pemmdb_data
* ci: set tyndp tests as firsts
* fix: correct use of drop_on_columns
* log: improve verbosity of logger by setting logger levels appropriately
* feat: minor improvements from code suggestion
* apply code suggestion
* feat: improve pemmdb collect rule
---------
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
Co-authored-by: Jonas Hörsch <coroa@posteo.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent e411c81 commit 4541286
24 files changed
Lines changed: 1897 additions & 88 deletions
File tree
- .github
- config
- test
- data
- doc
- configtables
- rules
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
89 | | - | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | | - | |
104 | | - | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
| |||
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
186 | 207 | | |
187 | 208 | | |
188 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
47 | 76 | | |
48 | 77 | | |
49 | 78 | | |
| |||
62 | 91 | | |
63 | 92 | | |
64 | 93 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
| |||
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
88 | | - | |
| 106 | + | |
89 | 107 | | |
90 | 108 | | |
91 | | - | |
92 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
93 | 135 | | |
94 | 136 | | |
95 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
54 | 83 | | |
55 | 84 | | |
56 | 85 | | |
| |||
69 | 98 | | |
70 | 99 | | |
71 | 100 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
87 | 105 | | |
88 | 106 | | |
89 | 107 | | |
| |||
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
95 | | - | |
| 113 | + | |
96 | 114 | | |
97 | 115 | | |
98 | | - | |
99 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
100 | 142 | | |
101 | 143 | | |
102 | 144 | | |
| |||
0 commit comments