normalize_range_forms

function of dascore.utils.pd source

normalize_range_forms(
    value ,
)

Normalize the patch-level slice range form to a 2-tuple.

Only slices are converted: bare None/Ellipsis keep their own meaning. A fully-open range is a no-op on a coordinate and is rejected on an attribute as having no usable bounds.