Skip to content

Commit 4863205

Browse files
committed
don't use bottleneck for NEP-18 arrays
1 parent 61c3eb9 commit 4863205

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xarray/core/rolling.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ def _numpy_or_bottleneck_reduce(
360360
)
361361
del kwargs["dim"]
362362

363-
if bottleneck_move_func is not None and not isinstance(
364-
self.obj.data, dask_array_type
363+
if (
364+
bottleneck_move_func is not None
365+
and not isinstance(self.obj.data, dask_array_type)
366+
and not hasattr(self.obj.data, "__array_function__")
365367
):
366368
# TODO: renable bottleneck with dask after the issues
367369
# underlying https://github.com/pydata/xarray/issues/2940 are

0 commit comments

Comments
 (0)