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

Method test_compressed

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

Source from the content-addressed store, hash-verified

3497 assert_equal(b._mask, [[0, 1], [1, 0]])
3498
3499 def test_compressed(self):
3500 # Tests compressed
3501 a = array([1, 2, 3, 4], mask=[0, 0, 0, 0])
3502 b = a.compressed()
3503 assert_equal(b, a)
3504 a[0] = masked
3505 b = a.compressed()
3506 assert_equal(b, [2, 3, 4])
3507
3508 def test_empty(self):
3509 # 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