m3resp.compute_offsets_from_timestamps#
- m3resp.compute_offsets_from_timestamps(reference_modality, timestamps)[source]#
Convert absolute per-device start timestamps into manual offsets (plan_stage2.md Sec 20, “timestamp alignment”).
Each modality’s events are relative to that modality’s own recording start. If a modality’s device started recording
timestamps[modality]seconds afterreference_modality’s device did, its events must be shifted forward by that same amount to land on the reference timeline. Feed the result straight into align_events_by_modality_offset.