Skip to content

Commit 166a7ee

Browse files
committed
provide correct type to tmp_remove_nodes
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent 7c6b42b commit 166a7ee

File tree

1 file changed

+1
-1
lines changed
  • src/power_grid_model_ds/_core/model/grids

1 file changed

+1
-1
lines changed

src/power_grid_model_ds/_core/model/grids/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def set_feeder_ids(grid: "Grid"):
4646
"""
4747
_reset_feeder_ids(grid)
4848
feeder_node_ids = grid.node.filter(node_type=NodeType.SUBSTATION_NODE)["id"]
49-
with grid.graphs.active_graph.tmp_remove_nodes(feeder_node_ids):
49+
with grid.graphs.active_graph.tmp_remove_nodes(feeder_node_ids.tolist()):
5050
components = grid.graphs.active_graph.get_components()
5151
for component_node_ids in components:
5252
component_branches = _get_active_component_branches(grid, component_node_ids)

0 commit comments

Comments
 (0)