From 1508c4b61e1239703a5c63aead8714ec6acbe44e Mon Sep 17 00:00:00 2001 From: Daniel Tollenaar Date: Thu, 12 Dec 2024 12:10:40 +0100 Subject: [PATCH] merge_basins (#203) --- src/ribasim_nl/ribasim_nl/model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ribasim_nl/ribasim_nl/model.py b/src/ribasim_nl/ribasim_nl/model.py index 9c4a739..fe47d8b 100644 --- a/src/ribasim_nl/ribasim_nl/model.py +++ b/src/ribasim_nl/ribasim_nl/model.py @@ -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: