(self)
| 159 | assert_equal(aravel._mask.shape, a.shape) |
| 160 | |
| 161 | def test_view(self): |
| 162 | # Test view w/ flexible dtype |
| 163 | iterator = list(zip(np.arange(10), np.random.rand(10))) |
| 164 | data = np.array(iterator) |
| 165 | a = masked_array(iterator, dtype=[('a', float), ('b', float)]) |
| 166 | a.mask[0] = (1, 0) |
| 167 | test = a.view((float, 2), np.matrix) |
| 168 | assert_equal(test, data) |
| 169 | assert_(isinstance(test, np.matrix)) |
| 170 | assert_(not isinstance(test, MaskedArray)) |
| 171 | |
| 172 | |
| 173 | class TestSubclassing: |
nothing calls this directly
no test coverage detected