From 78e08c9a890895b608ed3272c9b2b8c1509bdbd2 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 11 Apr 2024 10:33:52 +0200 Subject: [PATCH] Fix "add results to xugrid" (#1374) Small bug I didn't notice in #1369 because the basic example has the same number of nodes and edges. --- python/ribasim/ribasim/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ribasim/ribasim/model.py b/python/ribasim/ribasim/model.py index 7a395ab5a..895cf7220 100644 --- a/python/ribasim/ribasim/model.py +++ b/python/ribasim/ribasim/model.py @@ -479,7 +479,7 @@ def _add_results(self, uds): # from node_id to the node_dim index node_lookup = pd.Series( index=uds["node_id"], - data=uds[edge_dim], + data=uds[node_dim], name="node_index", ) # from edge_id to the edge_dim index