Skip to content

Commit

Permalink
Merge pull request #703 from openego/fixes/clustering_of_h2_grid
Browse files Browse the repository at this point in the history
Fix clustering of h2_grid nodes
  • Loading branch information
ClaraBuettner committed Dec 6, 2023
2 parents 68920de + db3a99f commit b1fc592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etrago/cluster/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def gas_postprocessing(etrago, busmap, medoid_idx=None):
+ "_result.csv"
)

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

# Add all other buses to busmap
Expand Down
2 changes: 1 addition & 1 deletion etrago/tools/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def build_network_from_db(self):

self.decommissioning()

if "H2" in self.network.buses.carrier:
if "H2_grid" in self.network.buses.carrier.unique():
self.add_ch4_h2_correspondence()

logger.info("Imported network from db")
Expand Down

0 comments on commit b1fc592

Please sign in to comment.