mne.read_epochs

mne.read_epochs(fname, proj=True, preload=True, verbose=None)[source]

Read epochs from a fif file.

Parameters
fnamestr | file-like

The epochs filename to load. Filename should end with -epo.fif or -epo.fif.gz. If a file-like object is provided, preloading must be used.

projbool | ‘delayed’

Apply SSP projection vectors. If proj is ‘delayed’ and reject is not None the single epochs will be projected before the rejection decision, but used in unprojected state if they are kept. This way deciding which projection vectors are good can be postponed to the evoked stage without resulting in lower epoch counts and without producing results different from early SSP application given comparable parameters. Note that in this case baselining, detrending and temporal decimation will be postponed. If proj is False no projections will be applied which is the recommended value if SSPs are not used for cleaning the data.

preloadbool

If True, read all epochs from disk immediately. If False, epochs will be read on demand.

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
epochsinstance of Epochs

The epochs.

Examples using mne.read_epochs