[Scipy-tickets] [SciPy] #271: stats.kruskal not working

SciPy scipy-tickets at scipy.net
Tue Sep 26 07:52:11 CDT 2006


#271: stats.kruskal not working
-----------------------------+----------------------------------------------
 Reporter:  certain_drooler  |       Owner:  somebody             
     Type:  defect           |      Status:  new                  
 Priority:  normal           |   Milestone:                       
Component:  scipy.stats      |     Version:  devel                
 Severity:  normal           |    Keywords:  kruskal, stats, sum()
-----------------------------+----------------------------------------------
 The following was found after updating to scipy 0.5.2.dev2233:

 When running
 {{{
 import scipy
 import scipy.stats as stats
 stats.kruskal(scipy.rand(100), scipy.rand(100))
 }}}
 the following error is displayed:
 {{{
 -> 1874         rsums.append(sum(args[i],axis=0)**2)
    1875         rsums[i] = rsums[i] / float(n[i])
    1876     ssbn = sum(rsums,axis=0)

 TypeError: sum() takes no keyword arguments
 }}}

 The error dissapears if the prefix `np.` is added to `sum` in lines 1874,
 1876 and 1877, eg:
 {{{
 1876     ssbn = np.sum(rsums,axis=0)
 }}}

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


More information about the Scipy-tickets mailing list