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

scipy-svn@scip... scipy-svn@scip...
Thu Sep 25 23:01:40 CDT 2008


Author: cdavid
Date: 2008-09-25 23:01:16 -0500 (Thu, 25 Sep 2008)
New Revision: 4743

Modified:
   trunk/scipy/stats/stats.py
Log:
scipy.stats.warn raise a DeprecationWarning.


Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-09-26 04:00:25 UTC (rev 4742)
+++ trunk/scipy/stats/stats.py	2008-09-26 04:01:16 UTC (rev 4743)
@@ -1196,7 +1196,8 @@
 Please note that:
     - numpy.var axis argument defaults to None, not 0
     - numpy.var has a ddof argument to replace bias in a more general manner.
-      scipy.stats.var(a, bias=True) can be replaced by scipy.stats.var(x, axis=0, ddof=1).""")
+      scipy.stats.var(a, bias=True) can be replaced by scipy.stats.var(x,
+axis=0, ddof=1).""", DeprecationWarning)
     a, axis = _chk_asarray(a, axis)
     mn = np.expand_dims(mean(a,axis),axis)
     deviations = a - mn



More information about the Scipy-svn mailing list