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

Method test_compressed

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

Source from the content-addressed store, hash-verified

3283 assert_equal(b._mask, [[0, 1], [1, 0]])
3284
3285 def test_compressed(self):
3286 # Tests compressed
3287 a = array([1, 2, 3, 4], mask=[0, 0, 0, 0])
3288 b = a.compressed()
3289 assert_equal(b, a)
3290 a[0] = masked
3291 b = a.compressed()
3292 assert_equal(b, [2, 3, 4])
3293
3294 def test_empty(self):
3295 # Tests empty/like

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
assert_equalFunction · 0.90
compressedMethod · 0.45

Tested by

no test coverage detected