[Numpy-discussion] 1.10.0rc1

Charles R Harris charlesr.harris at gmail.com
Thu Aug 27 10:04:51 EDT 2015


On Thu, Aug 27, 2015 at 7:52 AM, Benjamin Root <ben.v.root at gmail.com> wrote:

>
> Ok, I tested matplotlib master against numpy master, and there were no
> errors. I did get a bunch of new deprecation warnings though such as:
>
> "/nas/home/broot/centos6/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-linux-x86_64.egg/matplotlib/colorbar.py:539:
> VisibleDeprecationWarning: boolean index did not match indexed array along
> dimension 0; dimension is 5 but corresponding boolean dimension is 3
>   colors = np.asarray(colors)[igood]"
>
> The message isn't exactly clear. I suspect the problem is a shape
> mismatch, like colors is 5x3, and igood is just 3 for some reason. Could
> somebody shine some light on this, please?
>

IIRC, Boolean indexing would fill out the dimension, i.e., len 3 would be
expanded to len 5 in this case. That behavior is deprecated.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150827/38fa5e54/attachment.html>


More information about the NumPy-Discussion mailing list