m3resp.SignalCollection#
- class m3resp.SignalCollection(items=<factory>)[source]#
An ordered collection of Signal objects, queryable by modality.
Methods
Append signal, unless this exact object is already present.
Filter by physical quantity (e.g.
"airway_pressure").Filter by producing device/technique (e.g.
"ventilator").Attributes
- add(signal)[source]#
Append signal, unless this exact object is already present.
Identity (not value) equality: re-adding the same Signal instance - e.g. if it gets assembled twice on an export path - is a no-op, while two distinct results that happen to compare equal both get added.
- for_category(category)[source]#
Filter by physical quantity (e.g.
"airway_pressure").Independent of for_modality: a ventilator contributes several categories, and one category can come from several devices. category is matched after canonicalization, so a known alias (
"paw") finds signals stored under the canonical name.