Closed Erotemic closed 7 months ago
In numpy 1.23.1 (or sooner, I didn't bisect it) using lists to slice is no longer allowed. It gives the error message:
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
IndexError: only integers, slices (
), ellipsis (
), numpy.newaxis (
) and integer or boolean arrays are valid indices
This PR fixes it by casting to a tuple being using as a slice.
Merged, thank you!
In numpy 1.23.1 (or sooner, I didn't bisect it) using lists to slice is no longer allowed. It gives the error message:
IndexError: only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices
This PR fixes it by casting to a tuple being using as a slice.