Generate random slices for a single dimension.
(n, allow_empty=False)
| 729 | return randslice_from_slicelen(slicelen, n) |
| 730 | |
| 731 | def rslices(n, allow_empty=False): |
| 732 | """Generate random slices for a single dimension.""" |
| 733 | for _ in range(5): |
| 734 | yield rslice(n, allow_empty) |
| 735 | |
| 736 | def rslices_ndim(ndim, shape, iterations=5): |
| 737 | """Generate random slice tuples for 'shape'.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…