Skip to content

Commit e5a1f7c

Browse files
Merge pull request #2325 from Parcels-code/fixing_macos_failing_test
Fixing a failing unit test on macos
2 parents 892cde5 + 2bc7650 commit e5a1f7c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_particleset_execute.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from parcels._datasets.unstructured.generic import datasets as datasets_unstructured
2525
from parcels.interpolators import UXPiecewiseConstantFace, UXPiecewiseLinearNode
2626
from parcels.kernels import AdvectionEE, AdvectionRK4, AdvectionRK4_3D
27-
from tests import utils
2827
from tests.common_kernels import DoNothing
2928

3029

@@ -475,8 +474,8 @@ def test_uxstommelgyre_pset_execute():
475474
runtime=np.timedelta64(10, "m"),
476475
dt=np.timedelta64(60, "s"),
477476
)
478-
assert utils.round_and_hash_float_array([p.lon for p in pset]) == 1165396086
479-
assert utils.round_and_hash_float_array([p.lat for p in pset]) == 1142124776
477+
np.testing.assert_allclose(pset[0].lon, 29.997648, atol=1e-3)
478+
np.testing.assert_allclose(pset[0].lat, 4.998691, atol=1e-3)
480479

481480

482481
def test_uxstommelgyre_multiparticle_pset_execute():

0 commit comments

Comments
 (0)