Skip to content

Commit df78b62

Browse files
Updating failing unit test
1 parent 1c948dd commit df78b62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/v4/test_advection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,11 @@ def test_nemo_curvilinear_fieldset():
412412
data_folder = parcels.download_example_dataset("NemoCurvilinear_data")
413413
files = data_folder.glob("*.nc4")
414414
ds = xr.open_mfdataset(files, combine="nested", data_vars="minimal", coords="minimal", compat="override")
415-
ds = ds.isel(time_counter=0, drop=True).drop_vars({"time"}).rename({"glamf": "lon", "gphif": "lat", "z": "depth"})
415+
ds = (
416+
ds.isel(time_counter=0, drop=True)
417+
.isel(time=0, drop=True)
418+
.rename({"glamf": "lon", "gphif": "lat", "z": "depth"})
419+
)
416420

417421
xgcm_grid = parcels.xgcm.Grid(
418422
ds,

0 commit comments

Comments
 (0)