[Scipy-tickets] [SciPy] #1575: BUG: zscore and zmap handle the axis keyword incorrectly

SciPy Trac scipy-tickets@scipy....
Fri Dec 16 23:27:36 CST 2011


#1575: BUG: zscore and zmap handle the axis keyword incorrectly
------------------------------+---------------------------------------------
 Reporter:  warren.weckesser  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:  0.11.0  
Component:  scipy.stats       |     Version:  0.9.0   
 Keywords:                    |  
------------------------------+---------------------------------------------
 As discussed in the mailing list starting here:

 http://mail.scipy.org/pipermail/scipy-user/2011-November/031100.html

 there is a bug in stats.zscore and stats.zmap.  The bug is simply a
 misplaced parenthesis.  For zscore, this
 {{{
         return ((a - np.expand_dims(mns, axis=axis) /
                  np.expand_dims(sstd,axis=axis)))
 }}}
 should be this
 {{{
         return ((a - np.expand_dims(mns, axis=axis)) /
                  np.expand_dims(sstd,axis=axis))
 }}}

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


More information about the Scipy-tickets mailing list