mne.make_fixed_length_epochs(raw, duration=1.0, preload=False, verbose=None)[source]

Divide continuous raw data into equal-sized consecutive epochs.

rawinstance of Raw

Raw data to divide into segments.


Duration of each epoch in seconds. Defaults to 1.

preloadbool or str (default False)

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).

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

epochsinstance of Epochs

Segmented data.


New in version 0.20.