File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ def test_trajectory():
331331 # dsactual.to_netcdf(expname)
332332 dsexpected = xr .open_dataset (expname )
333333 dsexpected = dsexpected .assign_coords ({"s_rho" : dsexpected ["s_rho" ]})[key_variable ]
334- assert dsexpected .equals (dsactual .astype (dsexpected .dtype ))
334+
335+ # assert dsexpected.equals(dsactual.astype(dsexpected.dtype))
336+ assert np .allclose (dsexpected , dsactual , equal_nan = True )
335337
336338
337339def test_trajectoryProfile ():
@@ -396,7 +398,8 @@ def test_trajectoryProfile():
396398 # # previously saved with:
397399 # dsactual.to_netcdf(expname)
398400 dsexpected = xr .open_dataarray (expname )
399- assert dsexpected .equals (dsactual .astype (dsexpected .dtype ))
401+ # assert dsexpected.equals(dsactual.astype(dsexpected.dtype))
402+ assert np .allclose (dsexpected , dsactual , equal_nan = True )
400403
401404
402405def test_grid ():
You can’t perform that action at this time.
0 commit comments