MCPcopy Create free account
hub / github.com/numpy/numpy / test_anom_shape

Method test_anom_shape

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

Source from the content-addressed store, hash-verified

3966 assert_equal(a.anom(), [-1, 0, 1])
3967
3968 def test_anom_shape(self):
3969 a = masked_array([1, 2, 3])
3970 assert_equal(a.anom().shape, a.shape)
3971 a.mask = True
3972 assert_equal(a.anom().shape, a.shape)
3973 assert_(np.ma.is_masked(a.anom()))
3974
3975 def test_anom(self):
3976 a = masked_array(np.arange(1, 7).reshape(2, 3))

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
anomMethod · 0.80
assert_Function · 0.50

Tested by

no test coverage detected