Skip to content

Commit

Permalink
fix issue of adding H2 store and make H2 Store in AC buses
Browse files Browse the repository at this point in the history
  • Loading branch information
yerbol-akhmetov committed Oct 9, 2024
1 parent b64623d commit fd0853e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_extra_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def attach_stores(n, costs, config):
_add_missing_carriers_from_costs(n, costs, carriers)

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

if "H2" in carriers:
h2_buses_i = n.madd("Bus", buses_i + " H2", carrier="H2", **bus_sub_dict)
Expand Down

0 comments on commit fd0853e

Please sign in to comment.