(self)
| 295 | assert_equal_records(mrec_._mask, mrec._mask) |
| 296 | |
| 297 | def test_filled(self): |
| 298 | # Test filling the array |
| 299 | _a = ma.array([1, 2, 3], mask=[0, 0, 1], dtype=int) |
| 300 | _b = ma.array([1.1, 2.2, 3.3], mask=[0, 0, 1], dtype=float) |
| 301 | _c = ma.array(['one', 'two', 'three'], mask=[0, 0, 1], dtype='|S8') |
| 302 | ddtype = [('a', int), ('b', float), ('c', '|S8')] |
| 303 | mrec = fromarrays([_a, _b, _c], dtype=ddtype, |
| 304 | fill_value=(99999, 99999., 'N/A')) |
| 305 | mrecfilled = mrec.filled() |
| 306 | assert_equal(mrecfilled['a'], np.array((1, 2, 99999), dtype=int)) |
| 307 | assert_equal(mrecfilled['b'], np.array((1.1, 2.2, 99999.), |
| 308 | dtype=float)) |
| 309 | assert_equal(mrecfilled['c'], np.array(('one', 'two', 'N/A'), |
| 310 | dtype='|S8')) |
| 311 | |
| 312 | def test_tolist(self): |
| 313 | # Test tolist. |
nothing calls this directly
no test coverage detected