m3resp.coerce_breath_events#
- m3resp.coerce_breath_events(values, *, modality=None, source=None)[source]#
Convert an iterable of breaths into a list of
BreathEventobjects.- Parameters:
values (Iterable[Any]) – Breaths in any form accepted by
coerce_breath_event().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:
- Breaths in input order. Each item is converted by
coerce_breath_event, with the same field handling and errors.
- Return type: