mne.concatenate_raws

mne.concatenate_raws(raws, preload=None, events_list=None, verbose=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
rawslist

List of Raw instances to concatenate (in order).

preloadbool, str, or None (default None)

Preload data into memory for data manipulation and faster indexing. If True, the data will be preloaded into memory (fast, requires large amount of memory). If preload is a string, preload is the file name of a memory-mapped file which is used to store the data on the hard drive (slower, requires less memory). If preload is None, preload=True or False is inferred using the preload status of the instances passed in.

events_listNone | list

The events to concatenate. Defaults to None.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

Returns
rawinstance of Raw

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

eventsndarray of int, shape (n_events, 3)

The events. Only returned if event_list is not None.

Examples using mne.concatenate_raws