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

Method test_maskedelement

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

Source from the content-addressed store, hash-verified

307 assert_equal(data_fixed._mask, [1., 0., 1.])
308
309 def test_maskedelement(self):
310 # Test of masked element
311 x = arange(6)
312 x[1] = masked
313 assert_(str(masked) == '--')
314 assert_(x[1] is masked)
315 assert_equal(filled(x[1], 0), 0)
316
317 def test_set_element_as_object(self):
318 # Tests setting elements with object

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
filledFunction · 0.90
arangeFunction · 0.85
assert_Function · 0.50

Tested by

no test coverage detected