Skip to content

Commit 68adcd2

Browse files
committed
fix typing
Signed-off-by: Vincent Koppen <[email protected]>
1 parent 9f3bd5b commit 68adcd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/power_grid_model_ds/_core/model/graphs/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def delete_branch3_array(self, branch_array: Branch3Array, raise_on_fail: bool =
183183
self.delete_branch_array(branches, raise_on_fail=raise_on_fail)
184184

185185
@contextmanager
186-
def tmp_remove_nodes(self, nodes: list[int]) -> Generator:
186+
def tmp_remove_nodes(self, nodes: list[int] | NDArray[np.int32]) -> Generator:
187187
"""Context manager that temporarily removes nodes and their branches from the graph.
188188
Example:
189189
>>> with graph.tmp_remove_nodes([1, 2, 3]):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def set_feeder_ids(grid: "Grid"):
4545
601 | 101 | 204
4646
"""
4747
_reset_feeder_ids(grid)
48-
feeder_node_ids = grid.node.filter(node_type=NodeType.SUBSTATION_NODE).id
48+
feeder_node_ids = grid.node.filter(node_type=NodeType.SUBSTATION_NODE)["id"]
4949
components = grid.graphs.active_graph.get_components(feeder_node_ids)
5050
for component_node_ids in components:
5151
component_branches = _get_active_component_branches(grid, component_node_ids)

0 commit comments

Comments
 (0)