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

scipy-svn@scip... scipy-svn@scip...
Wed Oct 22 03:16:07 CDT 2008


Author: cdavid
Date: 2008-10-22 03:15:58 -0500 (Wed, 22 Oct 2008)
New Revision: 4824

Modified:
   trunk/scipy/stats/morestats.py
Log:
Use np instead of numpy in morestats.

Modified: trunk/scipy/stats/morestats.py
===================================================================
--- trunk/scipy/stats/morestats.py	2008-10-21 10:51:18 UTC (rev 4823)
+++ trunk/scipy/stats/morestats.py	2008-10-22 08:15:58 UTC (rev 4824)
@@ -10,7 +10,7 @@
      atleast_1d, sqrt, ceil, floor, array, poly1d, compress, not_equal, \
      pi, exp, ravel, angle
 import scipy
-import numpy
+import numpy as np
 import types
 import scipy.optimize as optimize
 import scipy.special as special
@@ -784,7 +784,7 @@
     Returns pval -- Probability that null test is rejected for this set
                     of x and n even though it is true.
     """
-    x = atleast_1d(x).astype(numpy.integer)
+    x = atleast_1d(x).astype(np.integer)
     if len(x) == 2:
         n = x[1]+x[0]
         x = x[0]
@@ -792,7 +792,7 @@
         x = x[0]
         if n is None or n < x:
             raise ValueError, "n must be >= x"
-        n = numpy.int_(n)
+        n = np.int_(n)
     else:
         raise ValueError, "Incorrect length for x."
 



More information about the Scipy-svn mailing list