get_slice_tuple

method of dascore.core.coords.BaseCoord source

get_slice_tuple(
    self ,
    select: slice | ellipsis | tuple[<class ’slice, <class ’ellipsis, tuple[Any, Any], None] ,
    relative = False,
)-> ‘tuple[Any, Any]’

Get a tuple with (start, stop) and perform basic checks.

Parameters

Parameter Description
select An object for determining select range.
relative If True, the select values are relative to the minimum
(positive values) or maximum (negative values) of the
coordinate.