navigate.tools.slicing.ensure_slice
- navigate.tools.slicing.ensure_slice(keys, pos)
Ensure the output is a slice.
- Parameters:
keys (int or tuple or list or array) – List of indices to slice an array.
pos (int) – Index into keys.
- Returns:
The slice.
- Return type:
slice