[Scipy-tickets] [SciPy] #1769: mstats.kurtosistest is incorrectly converting to float, and fails to run

SciPy Trac scipy-tickets@scipy....
Mon Nov 5 15:09:02 CST 2012


#1769: mstats.kurtosistest is incorrectly converting to float, and fails to run
----------------------+-----------------------------------------------------
 Reporter:  natelust  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  0.10.1     
 Keywords:            |  
----------------------+-----------------------------------------------------
 When using mstats.kurtosistest the following error is generated:
 AttributeError: 'int' object has no attribute 'astype'
 because of line 1628     n = a.count(axis=axis).astype(float)
 This makes perfect sense as a would be an int, which has no astype method.
 Suggest changing to:
 n = np.float(a.count(axis=axis)
 or the like

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


More information about the Scipy-tickets mailing list