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

scipy-svn@scip... scipy-svn@scip...
Thu Sep 25 23:06:44 CDT 2008


Author: cdavid
Date: 2008-09-25 23:06:26 -0500 (Thu, 25 Sep 2008)
New Revision: 4750

Modified:
   trunk/scipy/stats/stats.py
Log:
Fix cov/corrcoef deprecation.


Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-09-26 04:05:42 UTC (rev 4749)
+++ trunk/scipy/stats/stats.py	2008-09-26 04:06:26 UTC (rev 4750)
@@ -1390,7 +1390,8 @@
     warnings.warn("""\
 scipy.stats.cov is deprecated; please update your code to use numpy.cov.
 Please note that:
-    - numpy.cov axis argument defaults to None, not 0
+    - numpy.cov rowvar argument defaults to true, not false
+    - numpy.cov bias argument defaults to false, not true
 """, DeprecationWarning)
     m = asarray(m)
     if y is None:
@@ -1426,7 +1427,7 @@
 scipy.stats.corrcoef is deprecated; please update your code to use numpy.corrcoef.
 Please note that:
     - numpy.corrcoef rowvar argument defaults to true, not false
-    - numpy.corrcoef bias argument defaults to 1, not 0
+    - numpy.corrcoef bias argument defaults to false, not true
 """, DeprecationWarning)
     if y is not None:
         x = np.transpose([x,y])



More information about the Scipy-svn mailing list