[Numpy-svn] r4947 - trunk/numpy/ma

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Mar 27 18:04:56 EDT 2008


Author: pierregm
Date: 2008-03-27 17:04:54 -0500 (Thu, 27 Mar 2008)
New Revision: 4947

Modified:
   trunk/numpy/ma/core.py
Log:
(forgot to get rid of my personal tests... sorry about that)

Modified: trunk/numpy/ma/core.py
===================================================================
--- trunk/numpy/ma/core.py	2008-03-27 21:56:44 UTC (rev 4946)
+++ trunk/numpy/ma/core.py	2008-03-27 22:04:54 UTC (rev 4947)
@@ -3358,14 +3358,3 @@
 indices = numpy.indices
 
 ###############################################################################
-if 1:
-    if 1:
-        a = array([1.23456, 2.34567, 3.45678, 4.56789, 5.67890],
-                  mask=[0,1,0,0,0])
-        assert(all(a.round() == array([1., 2., 3., 5., 6.])))
-        assert(all(a.round(1) == array([1.2, 2.3, 3.5, 4.6, 5.7])))
-        assert(all(a.round(3) == array([1.235, 2.346, 3.457, 4.568, 5.679])))
-        b = empty_like(a)
-        a.round(out=b)
-        assert(all(b == array([1., 2., 3., 5., 6.])))
-    print "OK"




More information about the Numpy-svn mailing list