[Numpy-discussion] NEP 21: Simplified and explicit advanced indexing (original) (raw)

Juan Nunez-Iglesias jni.soma at gmail.com
Tue Jun 26 02:24:13 EDT 2018


Plain indexing arr[...] should return an error for ambiguous cases. [...] This includes every use of vectorized indexing with multiple integer arrays. This line concerns me. In scikit-image, we often do:

rr, cc = coords.T # coords is an (n, 2) array of integer coordinates values = image[rr, cc]

Are you saying that this use is deprecated? Because we love it at scikit- image. I would be very very very sad to lose this syntax.

The current plain indexing allows for the use of non-tuples for multi- dimensional indexing. I believe this paragraph is itself deprecated? Didn't non-non-tuple indexing just get deprecated with 1.15?

Other general comments:



More information about the NumPy-Discussion mailing list