diff options
author | pierregm <pierregm@localhost> | 2008-03-27 22:04:54 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2008-03-27 22:04:54 +0000 |
commit | b30372185f472b29d4b2ac3f703359b9376a8b60 (patch) | |
tree | c4676889c3843f08b74189923070048110469afb /numpy/ma | |
parent | 3474b706e27054927ddafb39e88a0b0691c89227 (diff) | |
download | numpy-b30372185f472b29d4b2ac3f703359b9376a8b60.tar.gz |
(forgot to get rid of my personal tests... sorry about that)
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/core.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 7a29c0a36..e591ddde3 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -3358,14 +3358,3 @@ identity = _convert2ma('identity') 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" |