diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2009-02-22 13:47:14 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2009-02-22 13:47:14 +0000 |
commit | ce06f48088eead408ff2e4fee07b9eb555106b4b (patch) | |
tree | 5ef2966135c578ad69ffced799a6cf82a6e38991 /numpy/lib/tests/test_io.py | |
parent | f6fd858579cf661dfa99c44715eefee7f6d8b925 (diff) | |
download | numpy-ce06f48088eead408ff2e4fee07b9eb555106b4b.tar.gz |
Whitespace cleanup.
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r-- | numpy/lib/tests/test_io.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index c38d83add..25309316e 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1,4 +1,3 @@ - import numpy as np import numpy.ma as ma from numpy.ma.testutils import * @@ -699,7 +698,7 @@ M 33 21.99 def test_user_missing_values(self): - datastr ="A, B, C\n0, 0., 0j\n1, N/A, 1j\n-9, 2.2, N/A\n3, -99, 3j" + datastr ="A, B, C\n0, 0., 0j\n1, N/A, 1j\n-9, 2.2, N/A\n3, -99, 3j" data = StringIO.StringIO(datastr) basekwargs = dict(dtype=None, delimiter=',', names=True, missing='N/A') mdtype = [('A', int), ('B', float), ('C', complex)] @@ -712,7 +711,7 @@ M 33 21.99 assert_equal(test, control) # data.seek(0) - test = np.mafromtxt(data, + test = np.mafromtxt(data, missing_values={0:-9, 1:-99, 2:-999j}, **basekwargs) control = ma.array([( 0, 0.0, 0j), (1, -999, 1j), ( -9, 2.2, -999j), (3, -99, 3j)], @@ -721,7 +720,7 @@ M 33 21.99 assert_equal(test, control) # data.seek(0) - test = np.mafromtxt(data, + test = np.mafromtxt(data, missing_values={0:-9, 'B':-99, 'C':-999j}, **basekwargs) control = ma.array([( 0, 0.0, 0j), (1, -999, 1j), |