Skip to content

Commit

Permalink
Merge branch 'clustering_o2' into features/#766_develop_H2_grid_clust…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
CarlosEpia committed Jan 14, 2025
2 parents 23025f5 + 51d908c commit dbe4806
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion etrago/cluster/electrical.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def find_de_closest(network, bus_ne):
"H2_saltcavern": "power_to_H2",
"dsm": "dsm",
"Li ion": "BEV charger",
"Li_ion": "BEV_charger",
"O2": "power_to_O2",
"rural_heat": "rural_heat_pump",
}

Expand Down Expand Up @@ -901,6 +901,12 @@ def postprocessing(
etrago, busmap, cluster_met=method, apply_on=apply_on
)

###########################################################################
# PROVISIONAL FIX FOR O2 BUSES
o2_buses = network.buses[network.buses.carrier == "O2"]
network.buses.loc[o2_buses.index, "type"] = 1
###########################################################################

# merge busmap for foreign buses with the German buses
if not settings["cluster_foreign_AC"] and (apply_on == "grid_model"):
for bus in busmap_foreign.index:
Expand Down

0 comments on commit dbe4806

Please sign in to comment.