m3resp.QualityAnnotation#
- class m3resp.QualityAnnotation(*, quality_annotation_id=<factory>, target_type, target_id, time_window_start=None, time_window_end=None, breath_ids=None, quality_label, artifact_type=None, annotation_source=None, annotator_ref=None)[source]#
Polymorphic quality label (doc Sec 11).
breath_idslists the breaths the label is about, using the ids of the in-memory results (QualityFlag.breath_id/breath_ids). It is None when the label covers the whole target.Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
quality_annotation_id (str)
target_type (Literal['signal', 'file', 'session', 'event', 'feature'])
target_id (str)
time_window_start (float | None)
time_window_end (float | None)
quality_label (Literal['valid', 'suspect', 'invalid', 'missing', 'artifact'])
artifact_type (Literal['motion', 'electrode_detachment', 'ventilator_disconnect', 'noise', 'saturation', 'drift', 'other'] | None)
annotation_source (Literal['manual', 'automated', 'device_log'] | None)
annotator_ref (str | None)
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- quality_label: QualityLabel#
- target_type: TargetType#