You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indexing with a boolean mask doesn't work if the mask is a numpy array. I expect this to work because the behavior is available for python lists, and has an implementation in zarr/indexing.py
VindexInvalidSelectionError: unsupported selection type for vectorized indexing; only coordinate selection
(tuple of integer arrays) and mask selection (single Boolean array) are supported; got
(array([ True, False, True]), array([1]))
The text was updated successfully, but these errors were encountered:
Zarr version
2.16.1.dev4,2.15.0
Numcodecs version
0.10.2
Python Version
3.9.16,3.10.12
Operating System
Mac
Installation
Dev environment + pip install from pypi
Description
Indexing with a boolean mask doesn't work if the mask is a numpy array. I expect this to work because the behavior is available for python lists, and has an implementation in
zarr/indexing.py
Steps to reproduce
That works, this doesn't:
Full traceback
Additional output
This is also the case for 1 boolean arrays:
Full traceback
And I can get an error message telling me that mask based indexing is valid:
The text was updated successfully, but these errors were encountered: