[NumPy-Tickets] [NumPy] #1474: numpy.take has a bug (ubuntu 10.4)

NumPy Trac numpy-tickets@scipy....
Wed May 5 10:17:54 CDT 2010


#1474: numpy.take has a bug (ubuntu 10.4)
--------------------------+-------------------------------------------------
 Reporter:  hillier_dani  |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  2.0.0   
Component:  numpy.core    |     Version:  1.4.0rc1
 Keywords:                |  
--------------------------+-------------------------------------------------
 import numpy

 a = numpy.ones((256,256,3))

 b = numpy.take(a,[1,0,2],axis=2)

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib/python2.6/dist-
 packages/numpy-1.4.1-py2.6-linux-x86_64.egg/numpy/core/fromnumeric.py",
 line 103, in take
     return take(indices, axis, out, mode)
 IndexError: index out of range for array

 Example fails with above error: numpy 1.4.1 python 2.6.5 ubuntu 10.4:

 Example works: Mac OSX 10.6, same python/numpy version.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1474>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list