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

Method test_maskedelement

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

Source from the content-addressed store, hash-verified

402 assert_equal(data_fixed._mask, [1., 0., 1.])
403
404 def test_maskedelement(self):
405 # Test of masked element
406 x = arange(6)
407 x[1] = masked
408 assert_(str(masked) == '--')
409 assert_(x[1] is masked)
410 assert_equal(filled(x[1], 0), 0)
411
412 def test_set_element_as_object(self):
413 # Tests setting elements with object

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
filledFunction · 0.90
assert_Function · 0.85

Tested by

no test coverage detected