ffrprep.preproc.make_evoked

ffrprep.preproc.make_evoked(epochs, by_event_type: bool = True)[source]

Create evoked responses by averaging epochs.

Parameters:
  • epochs (mne.Epochs) – MNE Epochs object containing time-locked epochs.

  • by_event_type (bool, default=True) – If True (default), return a dict with one Evoked per event type (each Evoked’s .comment is set to the event name so downstream reports show meaningful condition labels). If False, average all epochs together into a single Evoked.

Returns:

evoked – Single MNE Evoked when by_event_type=False; otherwise a dict keyed by event name.

Return type:

mne.Evoked or dict of mne.Evoked