Skip to content

Commit fb03ef0

Browse files
committed
Update xarray.py
1 parent fb5e6ec commit fb03ef0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flox/xarray.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ def wrapper(array, *by, func, skipna, core_dims, **kwargs):
463463
and not isinstance(expect3, pd.RangeIndex)
464464
):
465465
levelnames = ds_broad.indexes[name].names
466+
if isinstance(expect3, np.ndarray):
467+
# TODO: workaoround for IntervalIndex issue.
468+
raise NotImplementedError
466469
expect3 = pd.MultiIndex.from_tuples(expect3.values, names=levelnames)
467470
actual[name] = expect3
468471
if Version(xr.__version__) > Version("2022.03.0"):

0 commit comments

Comments
 (0)