(self)
| 185 | self.data = (x, mx) |
| 186 | |
| 187 | def test_data_subclassing(self): |
| 188 | # Tests whether the subclass is kept. |
| 189 | x = np.arange(5) |
| 190 | m = [0, 0, 1, 0, 0] |
| 191 | xsub = SubArray(x) |
| 192 | xmsub = masked_array(xsub, mask=m) |
| 193 | assert_(isinstance(xmsub, MaskedArray)) |
| 194 | assert_equal(xmsub._data, xsub) |
| 195 | assert_(isinstance(xmsub._data, SubArray)) |
| 196 | |
| 197 | def test_maskedarray_subclassing(self): |
| 198 | # Tests subclassing MaskedArray |
nothing calls this directly
no test coverage detected