We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e76da commit 3c6cc8eCopy full SHA for 3c6cc8e
tests/test_xgrid.py
@@ -17,6 +17,7 @@
17
_transpose_xfield_data_to_tzyx,
18
)
19
from parcels._datasets.structured.generic import X, Y, Z, datasets
20
+from parcels.interpolators import XLinear
21
from tests import utils
22
23
GridTestCase = namedtuple("GridTestCase", ["ds", "attr", "expected"])
@@ -142,7 +143,7 @@ def test_vertical1D_field():
142
143
coords={"depth": (["depth"], np.linspace(0, 1, nz), {"axis": "Z"})},
144
145
grid = XGrid.from_dataset(ds)
- field = Field("z1d", ds["z1d"], grid)
146
+ field = Field("z1d", ds["z1d"], grid, XLinear)
147
148
assert field.eval(np.timedelta64(0, "s"), 0.45, 0, 0) == 4.5
149
@@ -154,7 +155,7 @@ def test_time1D_field():
154
155
coords={"time": (["time"], timerange, {"axis": "T"})},
156
157
- field = Field("t1d", ds["t1d"], grid)
158
+ field = Field("t1d", ds["t1d"], grid, XLinear)
159
160
assert field.eval(np.datetime64("2000-01-10T12:00:00"), -20, 5, 6) == 9.5
161
0 commit comments