validate_windows

function of dascore.io.utils source

validate_windows(
    windows: collections.abc.Sequence[Any] ,
)-> ‘tuple[Any, …]’

Return FiberIO.read_array windows, refusing a spelling which is not one.

A window is None (the whole axis), a slice, or a (start, stop) pair of sample indices; windows holds one per axis, in order. A bare integer is not a window, so no spelling is read two ways.