Skip to content

Commit

Permalink
make sure we actually decide based on dask.array.Array
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Feb 21, 2020
1 parent b6b1ca9 commit df4ea68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/duck_array_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def fail_on_dask_array_input(values, msg=None, func_name=None):


if hasattr(np, "isnat") and (
dask_array is None or hasattr(dask_array_type, "__array_ufunc__")
dask_array_type == () or hasattr(dask_array_type[0], "__array_ufunc__")
):
# np.isnat is available since NumPy 1.13, so __array_ufunc__ is always
# supported.
Expand Down

0 comments on commit df4ea68

Please sign in to comment.