is_gap

method of dascore.utils.gaps.GapTolerance source

is_gap(
    self ,
    delta ,
    step ,
)

Whether each spacing delta is a gap against sampling step.

Both are magnitudes or signed values in the coordinate’s scalar (an absolute tolerance must already be resolved). An unknown step (NaN) is never a gap against a sample count, and against an absolute excess the step counts as nothing.