From 44fbabfc95ad64a2dcd45d2664dbfdc20017e553 Mon Sep 17 00:00:00 2001 From: "Soroosh.Mani" Date: Thu, 14 Sep 2023 17:23:06 -0400 Subject: [PATCH] Fix tests for the now keyword only args to util func --- tests/api/hfun.py | 4 +++- tests/api/utils.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/api/hfun.py b/tests/api/hfun.py index 3570545b..1f43f9f7 100755 --- a/tests/api/hfun.py +++ b/tests/api/hfun.py @@ -678,7 +678,9 @@ def setUp(self): [0, 2, 6], [5, 4, 7], ]) - msh_t = ocsmesh.utils.msht_from_numpy(crd, tria, crs=4326) + msh_t = ocsmesh.utils.msht_from_numpy( + crd, triangles=tria, crs=4326 + ) mesh = ocsmesh.Mesh(msh_t) mesh.write(str(self.mesh1), format='grd', overwrite=False) diff --git a/tests/api/utils.py b/tests/api/utils.py index d555b066..c343e3e2 100644 --- a/tests/api/utils.py +++ b/tests/api/utils.py @@ -67,7 +67,9 @@ def test_cleanup_mesh_and_generate_valid_mesh(self): quads = msh_t1.quad4['index'] quads = np.vstack((quads, msh_t2.quad4['index'] + len(msh_t1.vert2))) - msh_t = utils.msht_from_numpy(verts, trias, quads) + msh_t = utils.msht_from_numpy( + verts, triangles=trias, quadrilaterals=quads + ) utils.finalize_mesh(msh_t)