Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion xarray/core/dask_array_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ def isin(element, test_elements, assume_unique=False, invert=False):
import math
from numbers import Integral, Real

AxisError = np.AxisError
try:
AxisError = np.AxisError
except AttributeError:
try:
np.array([0]).sum(axis=5)
except Exception as e:
AxisError = type(e)

def validate_axis(axis, ndim):
""" Validate an input to axis= keywords """
Expand Down