[Numpy-discussion] Problem with boolean-indexing of structured arrays

Benjamin Root ben.root at ou.edu
Sat Jul 16 17:09:29 EDT 2011


On Sat, Jul 16, 2011 at 2:12 PM, Benjamin Root <ben.root at ou.edu> wrote:

> Just a heads-up, I have uncovered a serious bug in one of my programs and
> traced it down to a boolean indexing of a structured array in the current
> master branch of numpy.  While I am still investigating exactly what  is
> happening, my initial suspicion is that data from another structured array
> is getting transplanted into the array view that I have.  I have not
> encountered this bug before, but I am currently checking with older versions
> of numpy to see if it is a regression or not.
>
> I will update with more information shortly.
>
> Ben Root
>

Please disregard.  It seems that the boolean indexing was working correctly,
it was the test that generated the boolean array that had an error and
caused incorrect data to be accessed.

I apologize for the noise.

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110716/9f42f609/attachment.html>


More information about the NumPy-Discussion mailing list