I have a question regarding the mne.Epochs() method. I have noticed that epochs are dropped only when preload=True.
epochs = mne.Epochs(raw_highpass, events, event_id, tmin, tmax, metadata=regressorsPd, baseline=(-.1, 0), preload=False, reject=None, reject_by_annotation=False)
Adding metadata with 6 columns
Replacing existing metadata with 6 columns
67 matching events found
Applying baseline correction (mode: mean)
0 projection items activated
epochsPreload = mne.Epochs(raw_highpass, events, event_id, tmin, tmax, metadata=regressorsPd, baseline=(-.1, 0), preload=True, reject=None, reject_by_annotation=False)
Adding metadata with 6 columns
Replacing existing metadata with 6 columns
67 matching events found
Applying baseline correction (mode: mean)
0 projection items activated
Loading data for 67 events and 451 original time points ...
45 bad epochs dropped
The 45 bad epochs are dropped because ‘too short’ as indicated by the log:
epochsPreload.drop_log
Out[86]:
((),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
(),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',),
('TOO_SHORT',))
I don’t understand two things.
- What is the reason of this? The helper says that epochs are ‘too short’ if they do not “contain enough data names of channels that exceeded the amplitude threshold”. I don’t understand what this means, especially since I have set no amplitude threshold for epoching.
- Why are ‘too short’ epochs being dropped only when they are preloaded?