Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meshkernel/meshkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
GeometryList: A sequence of points describing the inner boundary polygons of the mesh.
"""
Comment thread
BillSenior marked this conversation as resolved.

c_geometry_list_dimension = c_int()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mesh2d_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)


Expand Down
Loading