m3resp.coerce_intervals#
- m3resp.coerce_intervals(values, *, name=None, modality=None, source=None)[source]#
Convert an iterable of intervals into a list of
Intervalobjects.- Parameters:
values (Iterable[Any]) – Intervals in any form accepted by
coerce_interval().name (str | None) – Interval kind used for items with a missing or empty name.
modality (str | None) – Device or technique used for items with a missing or empty modality.
source (str | None) – Method name used for items with a missing or empty source.
- Returns:
- Intervals in input order, including
BreathEvent objects for converted breaths. Each item is converted by
coerce_interval, with the same field handling and errors.
- Intervals in input order, including
- Return type: