Skip to content

Commit 90e9d60

Browse files
Fix bug when time is not in data.dims
1 parent 2de92ea commit 90e9d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(
134134

135135
self.name = name
136136
self.grid = grid
137-
if is_dask_collection(data):
137+
if is_dask_collection(data) and ("time" in data.dims):
138138
self.data = None
139139
self.data_full = data
140140
else:

0 commit comments

Comments
 (0)