Skip to content

Commit 9c8f6e2

Browse files
committed
Fix dask?
1 parent e5a9b60 commit 9c8f6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/computation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ def to_floatable(x: DataArray) -> DataArray:
19551955
offset = (
19561956
np.datetime64("1970-01-01")
19571957
if x.dtype.kind == "M"
1958-
else type(x.data[0])(1970, 1, 1)
1958+
else type(x.data[0].compute())(1970, 1, 1)
19591959
)
19601960
return x.copy(
19611961
data=datetime_to_numeric(x.data, offset=offset, datetime_unit="ns"),

0 commit comments

Comments
 (0)