From c2ad6215fdb6ebe7948ade5c725f5e7b402c5199 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Tue, 19 Nov 2024 12:32:18 +0100 Subject: [PATCH] Remove duplicate lines --- threedigrid_builder/grid/grid.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/threedigrid_builder/grid/grid.py b/threedigrid_builder/grid/grid.py index d029b5d9..810880b3 100644 --- a/threedigrid_builder/grid/grid.py +++ b/threedigrid_builder/grid/grid.py @@ -758,9 +758,7 @@ def add_1d2d_lines( mask = self.nodes.content_type[node_idx] == objects.content_type content_pk = self.nodes.content_pk[node_idx[mask]] if node_open_water_detection == 0 and isinstance(objects, ConnectionNodes): - mask = self.nodes.content_type[node_idx] == objects.content_type - content_pk = self.nodes.content_pk[node_idx[mask]] - is_closed = objects.is_channel(content_pk, channels) + is_closed = objects.is_channel(content_pk[kcu_mask], channels) else: is_closed = objects.is_closed(content_pk) lines_1d2d.assign_kcu(mask, is_closed=is_closed)