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 errors, and a fully-open range is rejected downstream as having no usable bounds (per the selector spec).