MCPcopy Index your code
hub / github.com/numpy/numpy / test_anom_shape

Method test_anom_shape

numpy/ma/tests/test_core.py:4205–4210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4203 assert_equal(a.anom(), [-1, 0, 1])
4204
4205 def test_anom_shape(self):
4206 a = masked_array([1, 2, 3])
4207 assert_equal(a.anom().shape, a.shape)
4208 a.mask = True
4209 assert_equal(a.anom().shape, a.shape)
4210 assert_(np.ma.is_masked(a.anom()))
4211
4212 def test_anom(self):
4213 a = masked_array(np.arange(1, 7).reshape(2, 3))

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_Function · 0.85
anomMethod · 0.80

Tested by

no test coverage detected