indices_to_slice
- PlasmaCalcs.tools.arrays.indices_to_slice(indices, *, default=None)
returns a slice object equivalent to the given indices, if possible.
Else, return default.indices: iterable of integers.if not iterable, will return default instead.