[Numpy-svn] r6350 - trunk/numpy/ma/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Sat Feb 7 13:51:33 EST 2009
Author: pierregm
Date: 2009-02-07 12:51:31 -0600 (Sat, 07 Feb 2009)
New Revision: 6350
Modified:
trunk/numpy/ma/tests/test_core.py
Log:
Modified: trunk/numpy/ma/tests/test_core.py
===================================================================
--- trunk/numpy/ma/tests/test_core.py 2009-02-07 09:19:12 UTC (rev 6349)
+++ trunk/numpy/ma/tests/test_core.py 2009-02-07 18:51:31 UTC (rev 6350)
@@ -1124,12 +1124,12 @@
def test_flat(self):
"Test flat on masked_matrices"
- test = ma.array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])
- test.flat = ma.array([3, 2, 1], mask=[1, 0, 0])
- control = ma.array(np.matrix([[3, 2, 1]]), mask=[1, 0, 0])
+ test = masked_array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])
+ test.flat = masked_array([3, 2, 1], mask=[1, 0, 0])
+ control = masked_array(np.matrix([[3, 2, 1]]), mask=[1, 0, 0])
assert_equal(test, control)
#
- test = ma.array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])
+ test = masked_array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])
testflat = test.flat
testflat[:] = testflat[[2, 1, 0]]
assert_equal(test, control)
More information about the Numpy-svn
mailing list