(self)
| 814 | class TestApplyOverAxes: |
| 815 | # Tests apply_over_axes |
| 816 | def test_basic(self): |
| 817 | a = arange(24).reshape(2, 3, 4) |
| 818 | test = apply_over_axes(np.sum, a, [0, 2]) |
| 819 | ctrl = np.array([[[60], [92], [124]]]) |
| 820 | assert_equal(test, ctrl) |
| 821 | a[(a % 2).astype(bool)] = masked |
| 822 | test = apply_over_axes(np.sum, a, [0, 2]) |
| 823 | ctrl = np.array([[[28], [44], [60]]]) |
| 824 | assert_equal(test, ctrl) |
| 825 | |
| 826 | |
| 827 | class TestMedian: |
nothing calls this directly
no test coverage detected