intervals
Utilities for half-open intervals and the values they carry.
Intervals are [start, end) everywhere: an interval whose start equals its end is a point marker which covers nothing. These helpers are shared by anything which lays values along an axis – the inventory’s optical distance tracks, and the annotation sets which describe patch data.
Functions
| Name | Description |
|---|---|
| clip_intervals | Clip interval items to [lo, hi), dropping those left with no coverage. |
| interval_masks | Return, per interval, the mask of values that interval covers. |
| intervals_overlap | Return the first overlapping pair of half-open intervals, or None. |
| normalize_value | Normalize an interval’s value so its Python type survives validation. |
| value_kind | Return the value kind which decides an interval group’s shape. |