Skip to content

Commit

Permalink
Fix issue of adding H2 store in add_extra_components rule (pypsa-me…
Browse files Browse the repository at this point in the history
…ets-earth#1134)

* fix issue of adding H2 store and make H2 Store in AC buses

* add release notes

* Add H2 Stores to both AC and DC buses
  • Loading branch information
yerbol-akhmetov authored and GbotemiB committed Oct 22, 2024
1 parent 9a1fb06 commit ad189c5
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -26,6 +26,8 @@ E.g. if a new rule becomes available describe how to use it `make test` and in o

* Include a dedicated cutout for Europe in bundle_config.yaml `PR #1125 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1125>`_

* Fix the mismatch between buses and x, y locations while creating H2 Stores `PR #1134 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1134>`_

PyPSA-Earth 0.4.1
=================

Expand Down
2 changes: 1 addition & 1 deletion scripts/add_extra_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def attach_stores(n, costs, config):

_add_missing_carriers_from_costs(n, costs, carriers)

buses_i = n.buses.query("carrier == 'AC'").index
buses_i = n.buses.index
bus_sub_dict = {k: n.buses[k].values for k in ["x", "y", "country"]}

if "H2" in carriers:
Expand Down

0 comments on commit ad189c5

Please sign in to comment.