(self, indices)
| 856 | self.nd_a = np.arange(5).repeat(2).reshape(1, 5, 2) |
| 857 | |
| 858 | def _check_inverse_of_slicing(self, indices): |
| 859 | a_del = delete(self.a, indices) |
| 860 | nd_a_del = delete(self.nd_a, indices, axis=1) |
| 861 | msg = 'Delete failed for obj: %r' % indices |
| 862 | assert_array_equal(setxor1d(a_del, self.a[indices, ]), self.a, |
| 863 | err_msg=msg) |
| 864 | xor = setxor1d(nd_a_del[0,:, 0], self.nd_a[0, indices, 0]) |
| 865 | assert_array_equal(xor, self.nd_a[0,:, 0], err_msg=msg) |
| 866 | |
| 867 | def test_slices(self): |
| 868 | lims = [-6, -2, 0, 1, 2, 4, 5] |
no test coverage detected