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

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Sep 26 00:05:20 EDT 2008


Author: cdavid
Date: 2008-09-25 23:05:03 -0500 (Thu, 25 Sep 2008)
New Revision: 4748

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


Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-09-26 04:04:19 UTC (rev 4747)
+++ trunk/scipy/stats/stats.py	2008-09-26 04:05:03 UTC (rev 4748)
@@ -1387,6 +1387,11 @@
     If rowvar is False, then each row is a variable with
     observations in the columns.
     """
+    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
+""", DeprecationWarning)
     m = asarray(m)
     if y is None:
         y = m




More information about the Scipy-svn mailing list