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

Method test_clump_unmasked

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

Source from the content-addressed store, hash-verified

172 self.check_clump(clump_masked)
173
174 def test_clump_unmasked(self):
175 # Test clump_unmasked
176 a = masked_array(np.arange(10))
177 a[[0, 1, 2, 6, 8, 9]] = masked
178 test = clump_unmasked(a)
179 control = [slice(3, 6), slice(7, 8), ]
180 assert_equal(test, control)
181
182 self.check_clump(clump_unmasked)
183
184 def test_flatnotmasked_contiguous(self):
185 # Test flatnotmasked_contiguous

Callers

nothing calls this directly

Calls 4

check_clumpMethod · 0.95
clump_unmaskedFunction · 0.90
assert_equalFunction · 0.90
sliceFunction · 0.85

Tested by

no test coverage detected