Skip to content

Commit

Permalink
include busmap_area in general busmap
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Mar 22, 2024
1 parent 033df50 commit 3142f15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etrago/cluster/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def get_h2_clusters(etrago, busmap_ch4):


def gas_postprocessing(
etrago, busmap, medoid_idx=None, busmap_area=pd.DataFrame()
etrago, busmap, medoid_idx=None, busmap_area=pd.Series()
):
"""
Performs the postprocessing for the gas grid clustering based on the
Expand Down Expand Up @@ -365,6 +365,10 @@ def gas_postprocessing(
+ "_result.csv"
)

if len(busmap_area) > 0:
for bus_area in busmap_area.values:
busmap[bus_area] = bus_area

if "H2_grid" in etrago.network.buses.carrier.unique():
busmap = get_h2_clusters(etrago, busmap)

Expand Down

0 comments on commit 3142f15

Please sign in to comment.