Skip to content

Commit

Permalink
Merge pull request #686 from yerbol-akhmetov/append_ppl_fix
Browse files Browse the repository at this point in the history
fix append powerplant bug
  • Loading branch information
davide-f committed Apr 16, 2023
2 parents 5518db2 + a893e77 commit 313ef0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Upcoming Release

* Fix GADM naming bug related to level-2 clustering `PR #684 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/684>`__

* Fix append bug in build_powerplants rule `PR #686 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/686>`__

PyPSA-Earth 0.1.0
=================

Expand Down
4 changes: 3 additions & 1 deletion scripts/build_powerplants.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ def add_custom_powerplants(ppl, inputs, config):
# if isinstance(custom_ppl_query, str):
# add_ppls.query(custom_ppl_query, inplace=True)

return ppl.append(add_ppls, sort=False, ignore_index=True, verify_integrity=True)
return pd.concat(
[ppl, add_ppls], sort=False, ignore_index=True, verify_integrity=True
)


def replace_natural_gas_technology(df):
Expand Down

0 comments on commit 313ef0b

Please sign in to comment.