Skip to content

Commit ad334e2

Browse files
Compute variables that have a mockT dimension
1 parent 59c549e commit ad334e2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/parcels/_core/_windowed_array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ def maybe_windowed(data: xr.DataArray, max_levels: int | None = None):
108108
return data
109109
if data.dims and data.dims[0] == "time" and is_dask_collection(data.data):
110110
return WindowedArray(data, max_levels=max_levels)
111+
elif data.dims and data.dims[0] == "mockT" and is_dask_collection(data.data):
112+
return data.compute()
111113
return data

0 commit comments

Comments
 (0)