Skip to content

Commit

Permalink
Extend quickfix for multiple subgrids #402
Browse files Browse the repository at this point in the history
Also remove: 1) LV grid district from load areas LVGD list, 2) Graph from LV grid
nesnoj committed Jul 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 97eb137 commit 4d113a0
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
@@ -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)
# ==============================================

0 comments on commit 4d113a0

Please sign in to comment.