(self)
| 168 | assert_equal(aravel._mask.shape, a.shape) |
| 169 | |
| 170 | def test_view(self): |
| 171 | # Test view w/ flexible dtype |
| 172 | iterator = list(zip(np.arange(10), np.random.rand(10))) |
| 173 | data = np.array(iterator) |
| 174 | a = masked_array(iterator, dtype=[('a', float), ('b', float)]) |
| 175 | a.mask[0] = (1, 0) |
| 176 | test = a.view((float, 2), np.matrix) |
| 177 | assert_equal(test, data) |
| 178 | assert_(isinstance(test, np.matrix)) |
| 179 | assert_(not isinstance(test, MaskedArray)) |
| 180 | |
| 181 | |
| 182 | class TestSubclassing: |
nothing calls this directly
no test coverage detected