[Scipy-tickets] [SciPy] #1161: nanstd chokes on negative axis

SciPy Trac scipy-tickets@scipy....
Fri Apr 23 14:23:58 CDT 2010

#1161: nanstd chokes on negative axis
 Reporter:  kwgoodman    |       Owner:  somebody
     Type:  defect       |      Status:  apply   
 Priority:  normal       |   Milestone:  0.8.0   
Component:  scipy.stats  |     Version:  0.7.0   
 Keywords:               |  
Changes (by josefpktd):

  * status:  needs_review => apply


 So we don't have to rely on the behavior of _chk_asarray, this is the
 safer and more standard patch

     if axis:
         d = (x-np.expand_dims(m1, axis))**2.0
         d = (x-m1)**2.0

 tested for 1d, 2d, 3d

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

More information about the Scipy-tickets mailing list