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

Method test_clump_unmasked

numpy/ma/tests/test_extras.py:137–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 self.check_clump(clump_masked)
136
137 def test_clump_unmasked(self):
138 # Test clump_unmasked
139 a = masked_array(np.arange(10))
140 a[[0, 1, 2, 6, 8, 9]] = masked
141 test = clump_unmasked(a)
142 control = [slice(3, 6), slice(7, 8), ]
143 assert_equal(test, control)
144
145 self.check_clump(clump_unmasked)
146
147 def test_flatnotmasked_contiguous(self):
148 # Test flatnotmasked_contiguous

Callers

nothing calls this directly

Calls 3

check_clumpMethod · 0.95
clump_unmaskedFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected