(self)
| 2030 | assert_equal(a._mask, zeros(10)) |
| 2031 | |
| 2032 | def test_shrink_mask(self): |
| 2033 | # Tests .shrink_mask() |
| 2034 | a = array([1, 2, 3], mask=[0, 0, 0]) |
| 2035 | b = a.shrink_mask() |
| 2036 | assert_equal(a, b) |
| 2037 | assert_equal(a.mask, nomask) |
| 2038 | |
| 2039 | # Mask cannot be shrunk on structured types, so is a no-op |
| 2040 | a = np.ma.array([(1, 2.0)], [('a', int), ('b', float)]) |
| 2041 | b = a.copy() |
| 2042 | a.shrink_mask() |
| 2043 | assert_equal(a.mask, b.mask) |
| 2044 | |
| 2045 | def test_flat(self): |
| 2046 | # Test that flat can return all types of items [#4585, #4615] |
nothing calls this directly
no test coverage detected