Skip to content

Commit

Permalink
Merge branch 'dev' into fix/#402_quickfix_multiple_subgrids
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Jul 25, 2024
2 parents 8c2798a + 4d113a0 commit b0a131c
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 b0a131c

Please sign in to comment.