navigate.tools.slicing.ensure_iter
- navigate.tools.slicing.ensure_iter(keys, pos, shape)
Ensure the output is iterable.
- Parameters:
keys (int or tuple or list or array) – List of indices to slice an array.
pos (int) – Index into keys.
shape (int) – The length of the dimension we are slicing.
- Returns:
The range.
- Return type:
range