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

Method test_smallmask

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

Source from the content-addressed store, hash-verified

2185 assert_equal(b, array([0, 2, 3], mask=[0, 0, 0]))
2186
2187 def test_smallmask(self):
2188 # Checks the behaviour of _smallmask
2189 a = arange(10)
2190 a[1] = masked
2191 a[1] = 1
2192 assert_equal(a._mask, nomask)
2193 a = arange(10)
2194 a._smallmask = False
2195 a[1] = masked
2196 a[1] = 1
2197 assert_equal(a._mask, zeros(10))
2198
2199 def test_shrink_mask(self):
2200 # Tests .shrink_mask()

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
zerosFunction · 0.85

Tested by

no test coverage detected