(self)
| 4040 | assert_equal_records(record['_mask'], data._mask) |
| 4041 | |
| 4042 | def test_fromflex(self): |
| 4043 | # Test the reconstruction of a masked_array from a record |
| 4044 | a = array([1, 2, 3]) |
| 4045 | test = fromflex(a.toflex()) |
| 4046 | assert_equal(test, a) |
| 4047 | assert_equal(test.mask, a.mask) |
| 4048 | |
| 4049 | a = array([1, 2, 3], mask=[0, 0, 1]) |
| 4050 | test = fromflex(a.toflex()) |
| 4051 | assert_equal(test, a) |
| 4052 | assert_equal(test.mask, a.mask) |
| 4053 | |
| 4054 | a = array([(1, 1.), (2, 2.), (3, 3.)], mask=[(1, 0), (0, 0), (0, 1)], |
| 4055 | dtype=[('A', int), ('B', float)]) |
| 4056 | test = fromflex(a.toflex()) |
| 4057 | assert_equal(test, a) |
| 4058 | assert_equal(test.data, a.data) |
| 4059 | |
| 4060 | def test_arraymethod(self): |
| 4061 | # Test a _arraymethod w/ n argument |
nothing calls this directly
no test coverage detected