m3resp.SignalCollection#

class m3resp.SignalCollection(items=<factory>)[source]#

An ordered collection of Signal objects, queryable by modality.

Methods

add

Append signal, unless this exact object is already present.

for_category

Filter by physical quantity (e.g. "airway_pressure").

for_modality

Filter by producing device/technique (e.g. "ventilator").

to_manifest_rows

Attributes

Parameters:

items (list[Signal])

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.

Parameters:

signal (Signal)

Return type:

Signal

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.

Parameters:

category (str)

Return type:

list[Signal]

for_modality(modality)[source]#

Filter by producing device/technique (e.g. "ventilator").

Parameters:

modality (str)

Return type:

list[Signal]

items: list[Signal]#
to_manifest_rows()[source]#
Return type:

list[dict[str, Any]]

Tutorials that use SignalCollection#

Process an EIT recording

Process an EIT recording

Process an EMG recording

Process an EMG recording