@@ -660,8 +660,8 @@ def test_mesh2d_make_global():
660
660
mk .mesh2d_make_global (num_longitude_nodes , num_latitude_nodes )
661
661
mesh2d = mk .mesh2d_get ()
662
662
663
- assert mesh2d .edge_x .size == 1233
664
- assert mesh2d .node_x .size == 629
663
+ assert mesh2d .edge_x .size == 1225
664
+ assert mesh2d .node_x .size == 621
665
665
666
666
667
667
def test_mesh2d_make_global_with_cartesian_coordinates_should_throw ():
@@ -2311,6 +2311,7 @@ def test_mesh2d_deletion_and_get_orthogonality(
2311
2311
cases_get_property = [
2312
2312
(
2313
2313
Mesh2d .Property .ORTHOGONALITY ,
2314
+ Mesh2dLocation .EDGES ,
2314
2315
np .array (
2315
2316
[
2316
2317
- 999.0 ,
@@ -2343,6 +2344,7 @@ def test_mesh2d_deletion_and_get_orthogonality(
2343
2344
),
2344
2345
(
2345
2346
Mesh2d .Property .EDGE_LENGTHS ,
2347
+ Mesh2dLocation .EDGES ,
2346
2348
np .array (
2347
2349
[
2348
2350
100.0 ,
@@ -2377,20 +2379,21 @@ def test_mesh2d_deletion_and_get_orthogonality(
2377
2379
2378
2380
2379
2381
@pytest .mark .parametrize (
2380
- "property, expected_values" ,
2382
+ "property, location, expected_values" ,
2381
2383
cases_get_property ,
2382
2384
)
2383
2385
def test_mesh2d_get_property (
2384
2386
meshkernel_with_mesh2d : MeshKernel ,
2385
2387
property : Mesh2d .Property ,
2388
+ location : Mesh2dLocation ,
2386
2389
expected_values : ndarray ,
2387
2390
):
2388
2391
"""Test mesh2d_get_property,
2389
2392
getting the mesh2d property values
2390
2393
"""
2391
2394
mk = meshkernel_with_mesh2d (rows = 3 , columns = 3 , spacing_x = 50.0 , spacing_y = 100.0 )
2392
2395
2393
- property_list = mk .mesh2d_get_property (property )
2396
+ property_list = mk .mesh2d_get_property (location , property )
2394
2397
2395
2398
assert property_list .values == approx (expected_values , abs = 1e-6 )
2396
2399
0 commit comments