mne.epochs.
combine_event_ids
(epochs, old_event_ids, new_event_id, copy=True)[source]¶Collapse event_ids from an epochs instance into a new event_id.
Parameters: | epochs : instance of Epochs
old_event_ids : str, or list
new_event_id : dict, or int
copy : bool
|
---|
Notes
This For example (if epochs.event_id was {‘Left’: 1, ‘Right’: 2}:
combine_event_ids(epochs, [‘Left’, ‘Right’], {‘Directional’: 12})
would create a ‘Directional’ entry in epochs.event_id replacing ‘Left’ and ‘Right’ (combining their trials).