[Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

Andrew Nelson andyfaff at gmail.com
Tue Jun 26 02:28:22 EDT 2018


On Tue, 26 Jun 2018 at 16:24, Juan Nunez-Iglesias <jni.soma at gmail.com>
wrote:

> > 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.
>

 I second Juan's sentiments wholeheartedly here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180626/1672564c/attachment.html>


More information about the NumPy-Discussion mailing list