- MNE version: 0.24
I have a little question regarding the Epochs
collection. I generate Epochs
using a command like
epochs = mne.Epochs(raw, events, 1, baseline=(None,None), tmin=0,
tmax=2.0, reject=None,
preload=True, verbose=True)
I have one or few long events, and cut those down into a series of short epochs.
I pre-process each epoch and find which ones have data that I do not want to use - this is more fine-grained than what is possible with the reject
parameter.
Now, I want to throw out my custom detected bad epochs. When I iterate over them, I get a numpy array with no time-reference - if I had start-stop time for each epoch, I could generate a ‘bad-xyz’ annotation, but can’t find out how.
Since I one-to-many relationship between original events and epochs, the event_id from Epochs.next()
can’t be used.
There is certainly something I’m missing on how to reject an epoch from an Epochs
object, after it has been generated, but I cannot find out what - does anyone have a clue for me?