Skip to content

Commit

Permalink
fix: consistently rename countries (CZ, MD)
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed Sep 17, 2024
1 parent 515271b commit 3941392
Show file tree
Hide file tree
Showing 5 changed files with 22,818 additions and 22,440 deletions.
Binary file modified doc/powerplants.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions doc/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Upcoming Version

* BREAKING: Split "Bioenergy" into "Biogas" and "Solid Biomass".

* Consistently rename countries, affecting power plants in Czech Republic and
Moldova.

Version 0.5.19 (16.09.2024)
---------------------------

Expand Down
2 changes: 2 additions & 0 deletions powerplantmatching/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def BEYONDCOAL(raw=False, update=False, config=None):
)
.pipe(scale_to_net_capacities)
.pipe(clean_name)
.pipe(convert_to_short_name)
.pipe(set_column_name, "BEYONDCOAL")
.pipe(config_filter, config)
)
Expand Down Expand Up @@ -629,6 +630,7 @@ def WIKIPEDIA(raw=False, update=False, config=None):
df = (
df.rename(columns=RENAME_COLUMNS)
.pipe(clean_name)
.pipe(convert_to_short_name)
.assign(
Fueltype="Nuclear",
Set="PP",
Expand Down
4 changes: 2 additions & 2 deletions powerplantmatching/package_data/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ target_countries:
- Bosnia and Herzegovina
- Bulgaria
- Croatia
- Czech Republic
- Czechia
- Denmark
- Estonia
- Finland
Expand All @@ -248,7 +248,7 @@ target_countries:
- Lithuania
- Luxembourg
- North Macedonia
- Moldova, Republic of
- Moldova
- Montenegro
- Netherlands
- Norway
Expand Down
Loading

0 comments on commit 3941392

Please sign in to comment.