relative_offset

function of dascore.utils.pd source

relative_offset(
    gmin ,
    gmax ,
    value ,
)

Resolve one relative bound against a global [gmin, gmax] envelope.

Positive offsets measure from the start, negative from the end; None/Ellipsis bounds stay open. Datetime envelopes take numeric seconds offsets.