[NumPy-Tickets] [NumPy] #2000: numpy.add.reduceat no longer works on degenerate arrays

NumPy Trac numpy-tickets@scipy....
Fri Dec 16 10:02:14 CST 2011


#2000: numpy.add.reduceat no longer works on degenerate arrays
---------------------+------------------------------------------------------
 Reporter:  dalleyg  |       Owner:  somebody   
     Type:  defect   |      Status:  new        
 Priority:  normal   |   Milestone:  Unscheduled
Component:  Other    |     Version:  1.6.0      
 Keywords:           |  
---------------------+------------------------------------------------------
 The following works on numpy 1.4.1:

 $ python -c 'from numpy import *; print __version__; print
 add.reduceat(zeros((0,)), [])'
 1.4.1
 []

 but does not work on 1.6.1:

 python -c 'from numpy import *; print __version__; print
 add.reduceat(zeros((0,)), [])'
 1.6.1
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ValueError: cannot remove a zero-sized axis from an iterator

 It would be helpful if it could be made to work again (e.g. it should
 return the input array if both the "a" and "indices" input arrays are
 empty).

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


More information about the NumPy-Tickets mailing list