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

Method testaxis

numpy/ma/tests/test_core.py:5500–5507  ·  view source on GitHub ↗
(f, a, d)

Source from the content-addressed store, hash-verified

5498 a = np.ma.array(d, mask=m)
5499
5500 def testaxis(f, a, d):
5501 numpy_f = numpy.__getattribute__(f)
5502 ma_f = np.ma.__getattribute__(f)
5503
5504 # test axis arg
5505 assert_equal(ma_f(a, axis=1)[..., :-1], numpy_f(d[..., :-1], axis=1))
5506 assert_equal(ma_f(a, axis=(0, 1))[..., :-1],
5507 numpy_f(d[..., :-1], axis=(0, 1)))
5508
5509 def testkeepdims(f, a, d):
5510 numpy_f = numpy.__getattribute__(f)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
__getattribute__Method · 0.45

Tested by

no test coverage detected