File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2424from parcels ._datasets .unstructured .generic import datasets as datasets_unstructured
2525from parcels .interpolators import UXPiecewiseConstantFace , UXPiecewiseLinearNode
2626from parcels .kernels import AdvectionEE , AdvectionRK4 , AdvectionRK4_3D
27- from tests import utils
2827from 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
482481def test_uxstommelgyre_multiparticle_pset_execute ():
You can’t perform that action at this time.
0 commit comments