Modify event order or timing
ds (Dataset) – A Dataset containing events (with variables as returned by
ds – Should return the modified events dataset. Needs to contain at least the
- Return type
Add event labels
Override this method in subclasses to change the event structure or timing. This method is called before adding other variables.
The subject and session the events are from can be determined with
Calling the original (super-class) method is not necessary.
Drop the last event from subject
class Experiment(MneExperiment): def fix_events(self, ds): if ds.info['subject'] == 'S01': return ds[:-1] else: return ds