m3resp.BreathEvent#
- class m3resp.BreathEvent(modality, start_time, end_time, *, id=<factory>, label=None, start_index=None, end_index=None, sample_frequency=None, signal_name=None, source=None, confidence=None, metadata=<factory>, extremum_time=None, extremum_index=None)[source]#
One breath from one modality, with a signal turning point.
EIT, EMG, and ventilator breath detectors all produce this one type, so breaths from different modalities can be compared and matched. It has every field of
Interval, withnameset to'breath'automatically, plus the two below.- Variables:
extremum_time (float | None) – Time of the detected turning point, in seconds on the same time axis as
start_timeandend_time. This is the inhalation-to-exhalation transition for EIT and ventilator volume, the EMG peak, or the pressure minimum for an occluded breath.Nonewhen the detector didn’t report one.extremum_index (int | None) – Position of
extremum_timein the signal named bysignal_name, orNone.
- Parameters:
Give fields after
end_timeby keyword, e.g.BreathEvent("eit", 1.0, 2.0, extremum_time=1.5).Attributes
modalitystart_timeend_timeidmetadata