Skip to content

Commit

Permalink
Fix tests for the now keyword only args to util func
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Sep 14, 2023
1 parent 0d1eb80 commit 44fbabf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/api/hfun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion tests/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 44fbabf

Please sign in to comment.