navigate.tools.slicing

Functions

ensure_iter(keys, pos, shape)

Ensure the output is iterable.

ensure_slice(keys, pos)

Ensure the output is a slice.

key_len(keys)

slice_len(sl, n)

Calculate the length of the slice over an array of size n.