(self)
| 792 | class TestApplyAlongAxis: |
| 793 | # Tests 2D functions |
| 794 | def test_3d(self): |
| 795 | a = arange(12.).reshape(2, 2, 3) |
| 796 | |
| 797 | def myfunc(b): |
| 798 | return b[1] |
| 799 | |
| 800 | xa = apply_along_axis(myfunc, 2, a) |
| 801 | assert_equal(xa, [[1, 4], [7, 10]]) |
| 802 | |
| 803 | # Tests kwargs functions |
| 804 | def test_3d_kwargs(self): |
nothing calls this directly
no test coverage detected