mne.make_fixed_length_epochs¶
-
mne.
make_fixed_length_epochs
(raw, duration=1.0, preload=False, reject_by_annotation=True, verbose=None)[source]¶ Divide continuous raw data into equal-sized consecutive epochs.
- Parameters
- rawinstance of
Raw
Raw data to divide into segments.
- duration
float
Duration of each epoch in seconds. Defaults to 1.
- preloadbool or
str
(defaultFalse
) 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).
- reject_by_annotationbool
Whether to reject based on annotations. If
True
(default), epochs overlapping with segments whose description begins with'bad'
are rejected. IfFalse
, no rejection based on annotations is performed.New in version 0.21.0.
- verbosebool,
str
,int
, orNone
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.
- rawinstance of
- Returns
- epochsinstance of
Epochs
Segmented data.
- epochsinstance of
Notes
New in version 0.20.