Skip to content

Commit

Permalink
Merge branch 'dev' into feature/fix_for_berlin_quickfix_multiple_subg…
Browse files Browse the repository at this point in the history
…rids
  • Loading branch information
nesnoj committed Jul 25, 2024
2 parents e2d9720 + 4d113a0 commit aedc75d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ding0/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ def run_ding0(
for component in subgraphs:
if len(component) < subgraph_max_len:
for node in component:
# Remove LV grid and LV grid district
if isinstance(node, LVStationDing0):
node.grid.graph.clear()
node.lv_load_area._lv_grid_districts.remove(node.grid.grid_district)
# Remove LV station from MV grid
grid_district.mv_grid.graph.remove_node(node)
# ==============================================

Expand Down

0 comments on commit aedc75d

Please sign in to comment.