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
I checked that this issue has not been reported before list of issues.
I have confirmed this bug exists on the latest version of sparse.
I have confirmed this bug exists on the main branch of sparse.
Describe the bug
Trying to use a boolean GCXS array to index another GCXS array with the same dimensions results in either IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices (when attempting to get values at the index) or ValueError: <class 'int'> can be computed for one-element arrays only. (when attempting to set values at the index). The setting operation is requred by the Dask nanvar implementation. This is currently preventing me from using sparse with Dask.
sparse version checks
I checked that this issue has not been reported before list of issues.
I have confirmed this bug exists on the latest version of sparse.
I have confirmed this bug exists on the main branch of sparse.
Describe the bug
Trying to use a boolean GCXS array to index another GCXS array with the same dimensions results in either
IndexError: only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices
(when attempting to get values at the index) orValueError: <class 'int'> can be computed for one-element arrays only.
(when attempting to set values at the index). The setting operation is requred by the Dasknanvar
implementation. This is currently preventing me from using sparse with Dask.Steps or code to reproduce the bug
minimal reprex:
Expected results
No error is thrown and the operation succeeds.
Actual results
For getting values:
For setting values:
Please describe your system.
Relevant log output
The text was updated successfully, but these errors were encountered: