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

scipy-svn@scip... scipy-svn@scip...
Thu Sep 25 23:02:27 CDT 2008


Author: cdavid
Date: 2008-09-25 23:02:08 -0500 (Thu, 25 Sep 2008)
New Revision: 4744

Modified:
   trunk/scipy/stats/stats.py
Log:
Deprecate scipy.stats.std.


Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-09-26 04:01:16 UTC (rev 4743)
+++ trunk/scipy/stats/stats.py	2008-09-26 04:02:08 UTC (rev 4744)
@@ -1214,6 +1214,13 @@
 the passed array (i.e., N-1).  Axis can equal None (ravel array
 first), or an integer (the axis over which to operate).
 """
+    warnings.warn("""\
+scipy.stats.std is deprecated; please update your code to use numpy.std.
+Please note that:
+    - numpy.std axis argument defaults to None, not 0
+    - numpy.std has a ddof argument to replace bias in a more general manner.
+      scipy.stats.std(a, bias=True) can be replaced by numpy.std(x,
+axis=0, ddof=1).""", DeprecationWarning)
     return np.sqrt(var(a,axis,bias))
 
 



More information about the Scipy-svn mailing list