m3resp.MultimodalPreset#

class m3resp.MultimodalPreset[source]#

Set recording start times and align detected breaths across modalities.

Runs session.synchronize_raw_modalities followed by session.synchronize_multimodal_breaths. Run after processing each modality so the breath events are available.

Variables:

name (str) – Registered preset name, "multimodal".

Methods

run

Set recording start times and store aligned breath events.

Attributes

name: str = 'multimodal'#
run(session, *, config=None)[source]#

Set recording start times and store aligned breath events.

Parameters:
  • session (M3Session) – Session with recordings and detected breaths to synchronize.

  • config (PresetConfig | None) – Keyword arguments for the session methods, grouped under synchronize_raw and align. Offsets are in seconds; None uses the session methods’ defaults.

Returns:

The supplied session with start times, synchronization

methods, aligned events and provenance.

Return type:

M3Session