(self)
| 1217 | assert_(isinstance(ma + na, MaskedArray)) |
| 1218 | |
| 1219 | def test_limits_arithmetic(self): |
| 1220 | tiny = np.finfo(float).tiny |
| 1221 | a = array([tiny, 1. / tiny, 0.]) |
| 1222 | assert_equal(getmaskarray(a / 2), [0, 0, 0]) |
| 1223 | assert_equal(getmaskarray(2 / a), [1, 0, 1]) |
| 1224 | |
| 1225 | def test_masked_singleton_arithmetic(self): |
| 1226 | # Tests some scalar arithmetic on MaskedArrays. |
nothing calls this directly
no test coverage detected