mne.concatenate_raws

mne.concatenate_raws(raws, preload=None, events_list=None)[source]

Concatenate raw instances as if they were continuous.

Note

raws[0] is modified in-place to achieve the concatenation. Boundaries of the raw files are annotated bad. If you wish to use the data as continuous recording, you can remove the boundary annotations after concatenation (see mne.Annotations.delete()).

Parameters:

raws : list

list of Raw instances to concatenate (in order).

preload : bool, or None

If None, preload status is inferred using the preload status of the raw files passed in. True or False sets the resulting raw file to have or not have data preloaded.

events_list : None | list

The events to concatenate. Defaults to None.

Returns:

raw : instance of Raw

The result of the concatenation (first Raw instance passed in).

events : ndarray of int, shape (n events, 3)

The events. Only returned if event_list is not None.