I/O#

Functions and classes for loading multimodal XDF recordings, aligning auxiliary streams to a common time grid, and exporting datasets to BIDS.


Loading#

The central entry point for reading XDF files. XDFLoader handles stream detection, resampling, and multi-stream alignment in one call, returning a MultimodalRecording that bundles the merged mne.io.Raw object together with any Tier-2 (high-rate) streams and irregular event streams.

XDFLoader([eeg_stream_name, ...])

Multimodal XDF loader for MoBI and physiological recordings.

MultimodalRecording(raw[, tier2, events, ...])

Container returned by XDFLoader.load().


Stream alignment#

Low-level utility for aligning a single auxiliary stream to an existing time grid. Used internally by XDFLoader but also useful standalone when combining data from different acquisition systems.

align_stream_to_timestamps(data, src_ts, tgt_ts)

Align a data stream to a set of target timestamps.


BIDS export#

Wrappers around mne_bids for writing cleaned EEG datasets to the Brain Imaging Data Structure standard.

export_to_bids(raw, bids_root, subject[, ...])

Export an MNE Raw object to a BIDS-compatible directory tree.

batch_export_to_bids(subject_runs, bids_root)

Export multiple subjects / runs to BIDS in a single call.

make_bids_dataset_description(bids_root, name)

Write a minimal BIDS dataset_description.json.