(self)
| 243 | assert_equal(a2dma, [1.5, 4.0]) |
| 244 | |
| 245 | def test_testAverage4(self): |
| 246 | # Test that `keepdims` works with average |
| 247 | x = np.array([2, 3, 4]).reshape(3, 1) |
| 248 | b = np.ma.array(x, mask=[[False], [False], [True]]) |
| 249 | w = np.array([4, 5, 6]).reshape(3, 1) |
| 250 | actual = average(b, weights=w, axis=1, keepdims=True) |
| 251 | desired = masked_array([[2.], [3.], [4.]], [[False], [False], [True]]) |
| 252 | assert_equal(actual, desired) |
| 253 | |
| 254 | def test_onintegers_with_mask(self): |
| 255 | # Test average on integers with mask |
nothing calls this directly
no test coverage detected