Skip to content

Commit

Permalink
Fix bug preventing inclusion of custom_powerplants (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
euronion authored Sep 5, 2023
1 parent 624d240 commit 02bffdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Upcoming Release

* Files extracted from sector-coupled data bundle have been moved from ``data/`` to ``data/sector-bundle``.


**Bugs and Compatibility**

* A bug preventing custom powerplants specified in ``data/custom_powerplants.csv`` was fixed. (https://github.com/PyPSA/pypsa-eur/pull/732)

PyPSA-Eur 0.8.1 (27th July 2023)
================================

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_powerplants.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
def add_custom_powerplants(ppl, custom_powerplants, custom_ppl_query=False):
if not custom_ppl_query:
return ppl
add_ppls = pd.read_csv(custom_powerplants, index_col=0, dtype={"bus": "str"})
add_ppls = pd.read_csv(custom_powerplants, dtype={"bus": "str"})
if isinstance(custom_ppl_query, str):
add_ppls.query(custom_ppl_query, inplace=True)
return pd.concat(
Expand Down

0 comments on commit 02bffdb

Please sign in to comment.