[Scipy-svn] r6212 - trunk/scipy/stats

scipy-svn@scip... scipy-svn@scip...
Mon Feb 1 21:35:23 CST 2010


Author: oliphant
Date: 2010-02-01 21:35:23 -0600 (Mon, 01 Feb 2010)
New Revision: 6212

Modified:
   trunk/scipy/stats/stats.py
Log:
Fix stats.histogram to not use new= keyword of np.histogram.

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2010-01-29 02:20:05 UTC (rev 6211)
+++ trunk/scipy/stats/stats.py	2010-02-02 03:35:23 UTC (rev 6212)
@@ -1403,7 +1403,7 @@
         defaultlimits = (data_min - s, data_max + s)
     # use numpy's histogram method to compute bins
     hist, bin_edges = np.histogram(a, bins=numbins, range=defaultlimits,
-                                   weights=weights, new=True)
+                                   weights=weights)
     # hist are not always floats, convert to keep with old output
     hist = np.array(hist, dtype=float)
     # fixed width for bins is assumed, as numpy's histogram gives



More information about the Scipy-svn mailing list