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

Method test_3d_kwargs

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

Source from the content-addressed store, hash-verified

890
891 # Tests kwargs functions
892 def test_3d_kwargs(self):
893 a = arange(12).reshape(2, 2, 3)
894
895 def myfunc(b, offset=0):
896 return b[1 + offset]
897
898 xa = apply_along_axis(myfunc, 2, a, offset=1)
899 assert_equal(xa, [[2, 5], [8, 11]])
900
901
902class TestApplyOverAxes:

Callers

nothing calls this directly

Calls 3

apply_along_axisFunction · 0.90
assert_equalFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected