eelbrain.load.mne.add_mne_epochs
- eelbrain.load.mne.add_mne_epochs(data, tmin=-0.1, tmax=None, baseline=None, target='epochs', **kwargs)[source]
Load epochs and add them to a dataset as
mne.Epochs.If, after loading, the Epochs contain fewer cases than the Dataset, a copy of the Dataset is made containing only those events also contained in the Epochs. Note that the Epochs are always loaded with
preload==True.If the Dataset’s info dictionary contains a ‘bad_channels’ entry, those bad channels are added to the epochs.
- Parameters:
data (Dataset) – Dataset with events from a raw fiff file (i.e., created by load.mne.events).
tmin (float) – First sample to include in the epochs in seconds (Default is -0.1).
tmax (float) – Last sample to include in the epochs in seconds (Default 0.6; use
tstopinstead to specify index exclusive of last sample).baseline (tuple[float, float]) – Time interval for baseline correction.
(tmin, tmax)tuple in seconds, orNoneto use all the data (e.g.,(None, 0)uses all the data from the beginning of the epoch up tot = 0). Set toNonefor no baseline correction (default).target (str) – Name for the Epochs object in the Dataset.
... – See
mne_epochs().