[Numpy-discussion] A bug in boolean indexing?

Nadav Horesh nadavh at visionsense.com
Thu Jul 29 04:04:52 EDT 2010


The following does not raise an error:

a = np.arange(5)
a[a>0] = a

although a.shape == (5,) while a[a>0].shape == (4,)

I get in on python2.6.5, numpy 1.4.1 on win32, and python 2.6.5, numpy 2.0.0.dev8469 on linux64.

  Nadav.



More information about the NumPy-Discussion mailing list