From f23846350d3197ab5d639d70d6b98b17afb0c9d5 Mon Sep 17 00:00:00 2001 From: BillSenior Date: Thu, 6 Aug 2026 09:34:51 +0200 Subject: [PATCH 1/3] GRIDEDIT-2293 Update comment --- meshkernel/meshkernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshkernel/meshkernel.py b/meshkernel/meshkernel.py index 1fb824c2..fcce9315 100644 --- a/meshkernel/meshkernel.py +++ b/meshkernel/meshkernel.py @@ -287,7 +287,7 @@ def mesh2d_get_mesh_inner_boundaries_as_polygons(self) -> GeometryList: """Gets the inner boundary polygons from the MeshKernel. Returns: - Mesh2d: A copy of the inner boundary polygons. + Mesh2d: A sequence of points describing the inner boundary polygons of the mesh. """ c_geometry_list_dimension = c_int() From 9ab43aaa5e4c40f44f9770a4cc9b2bfd7fd7f7d0 Mon Sep 17 00:00:00 2001 From: BillSenior Date: Thu, 6 Aug 2026 11:27:50 +0200 Subject: [PATCH 2/3] GRIDEDIT-2293 Fixed unit test, reordered the boundary to anti-clockwise --- tests/test_mesh2d_basics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_mesh2d_basics.py b/tests/test_mesh2d_basics.py index 9616b87b..fadcdb0b 100644 --- a/tests/test_mesh2d_basics.py +++ b/tests/test_mesh2d_basics.py @@ -1198,12 +1198,12 @@ def test_mesh2d_get_mesh_boundaries_as_polygons(meshkernel_with_mesh2d: MeshKern mesh_boundary = mk.mesh2d_get_mesh_boundaries_as_polygons() assert_array_equal( + np.array([0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0], dtype=np.double), mesh_boundary.x_coordinates, - np.array([0.0, 0.0, 0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0], dtype=np.double), ) assert_array_equal( mesh_boundary.y_coordinates, - np.array([0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0], dtype=np.double), + np.array([0.0, 0.0, 0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0], dtype=np.double), ) From 633b60b409982dbb99b3b94f3281269871e39bfb Mon Sep 17 00:00:00 2001 From: BillSenior Date: Mon, 17 Aug 2026 15:17:32 +0200 Subject: [PATCH 3/3] GRIDEDIT-2293 Updated comment --- meshkernel/meshkernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshkernel/meshkernel.py b/meshkernel/meshkernel.py index fcce9315..7d7be7a8 100644 --- a/meshkernel/meshkernel.py +++ b/meshkernel/meshkernel.py @@ -287,7 +287,7 @@ def mesh2d_get_mesh_inner_boundaries_as_polygons(self) -> GeometryList: """Gets the inner boundary polygons from the MeshKernel. Returns: - Mesh2d: A sequence of points describing the inner boundary polygons of the mesh. + GeometryList: A sequence of points describing the inner boundary polygons of the mesh. """ c_geometry_list_dimension = c_int()