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

Method test_clump_masked

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

Source from the content-addressed store, hash-verified

161 assert_equal(a.compressed().sum(), s)
162
163 def test_clump_masked(self):
164 # Test clump_masked
165 a = masked_array(np.arange(10))
166 a[[0, 1, 2, 6, 8, 9]] = masked
167 #
168 test = clump_masked(a)
169 control = [slice(0, 3), slice(6, 7), slice(8, 10)]
170 assert_equal(test, control)
171
172 self.check_clump(clump_masked)
173
174 def test_clump_unmasked(self):
175 # Test clump_unmasked

Callers

nothing calls this directly

Calls 4

check_clumpMethod · 0.95
clump_maskedFunction · 0.90
assert_equalFunction · 0.90
sliceFunction · 0.85

Tested by

no test coverage detected