[Numpy-discussion] ANN: Numpy 1.8.0 beta 1 release
Christoph Gohlke
cgohlke at uci.edu
Thu Sep 5 11:56:43 EDT 2013
On 9/5/2013 1:18 AM, Sebastian Berg wrote:
> On Wed, 2013-09-04 at 22:08 -0700, Christoph Gohlke wrote:
>> On 9/1/2013 9:54 AM, Charles R Harris wrote:
>
> <snip>
>
>>
>> Hello,
>>
>> is this IndexError intentional in numpy 1.8? Matplotlib 1.3 fails some
>> tests because of this.
>>
>>>>> numpy.zeros(1)[[0], :]
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> IndexError: too many indices
>>
>> With numpy 1.7:
>>>>> numpy.zeros(1)[[0], :]
>> array([ 0.])
>>
>
> Yes certainly is intentional, since you actually do have too many
> indices (you have one dimension, you can only have one index). That it
> worked before was a bug. If this is a real problem, maybe we have to
> temporarily allow it?
>
> - Sebastian
>
Thanks. Not a real problem. It is better to fix matplotlib
<https://github.com/matplotlib/matplotlib/pull/2383>.
Christoph
More information about the NumPy-Discussion
mailing list