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 > Christoph > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
