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

Method test_onintegers_with_mask

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

Source from the content-addressed store, hash-verified

340 assert_almost_equal(actual, desired)
341
342 def test_onintegers_with_mask(self):
343 # Test average on integers with mask
344 a = average(array([1, 2]))
345 assert_equal(a, 1.5)
346 a = average(array([1, 2, 3, 4], mask=[False, False, True, True]))
347 assert_equal(a, 1.5)
348
349 def test_complex(self):
350 # Test with complex data.

Callers

nothing calls this directly

Calls 3

averageFunction · 0.90
arrayFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected