[Scipy-tickets] [SciPy] #1400: nanmedian chokes on size zero arrays

SciPy Trac scipy-tickets@scipy....
Wed Mar 2 16:39:48 CST 2011


#1400: nanmedian chokes on size zero arrays
-------------------------+--------------------------------------------------
 Reporter:  kwgoodman    |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  scipy.stats  |     Version:  0.8.0   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by kwgoodman):

 The bug is in np.apply_along_axis(np.sum, 1, np.ones((0,2))):
 {{{
 np.apply_along_axis(np.sum, 1, np.ones((0,2)))
 <snip>
 IndexError: invalid index
 }}}

 So, as pointed out by Jonathan Guyer, it might be related to this ticket:
 http://projects.scipy.org/numpy/ticket/1171

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1400#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list