Skip to content

Commit

Permalink
merge_basins (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTollenaar authored Dec 12, 2024
1 parent 848eed8 commit 1508c4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ribasim_nl/ribasim_nl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ def merge_basins(
)

if are_connected and (to_node_type != "FlowBoundary"):
self._graph = None # set self._graph to None, so it will regenerate on currend edge-table
paths = [i for i in nx.all_shortest_paths(nx.Graph(self.graph), node_id, to_node_id) if len(i) == 3]

if len(paths) == 0:
Expand Down

0 comments on commit 1508c4b

Please sign in to comment.