mne_plsc.utils.get_epoch_labels#

mne_plsc.utils.get_epoch_labels(epochs)#

Get a list of labels corresponding to each epoch for a set of epoched data.

Parameters:

epochs (mne.Epochs | mne.time_frequency.EpochsSpectrum | mne.time_frequency.EpochsTFR) – MNE data object containing epoch data.

Returns:

labels – List of the same length as the input data object containing one label per epoch.

Return type:

list

Examples

>>> labels = get_epoch_labels(epo)