Skip to content

Commit 6b06c3e

Browse files
WhiteSymmetryjaapschoutenalliandervincentkoppen
authored
TypeError: BaseGraphModel.get_components() got an unexpected keyword argument 'substation_nodes' (#85)
* Add files via upload Signed-off-by: Mehmet Keçeci <[email protected]> * Update model_interface.ipynb Signed-off-by: Mehmet Keçeci <[email protected]> * chore: remove duplicate Signed-off-by: Jaap Schouten <[email protected]> * chore: remove obsolete variable Signed-off-by: Jaap Schouten <[email protected]> * Use new tmp_remove_nodes Use tmp_remove_nodes instead of the old substation_nodes argument Signed-off-by: Vincent Koppen <[email protected]> --------- Signed-off-by: Mehmet Keçeci <[email protected]> Signed-off-by: Jaap Schouten <[email protected]> Signed-off-by: Vincent Koppen <[email protected]> Co-authored-by: Jaap Schouten <[email protected]> Co-authored-by: Vincent Koppen <[email protected]>
1 parent 69d02ae commit 6b06c3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/model_interface.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@
265265
"outputs": [],
266266
"source": [
267267
"all_paths = grid.graphs.active_graph.get_all_paths(56, 41)\n",
268-
"components = grid.graphs.active_graph.get_components(substation_nodes=np.array([1, 2, 3]))\n",
268+
"with grid.graphs.active_graph.tmp_remove_nodes([1, 2, 3]):\n",
269+
" components = grid.graphs.active_graph.get_components()\n",
269270
"connected = grid.graphs.active_graph.get_connected(node_id=56)"
270271
]
271272
}

0 commit comments

Comments
 (0)