Creating events with epileptic spikes

External Email - Use Caution

Hi everyone!
I'm working on spontaneous data from epileptic patients and I'm trying to
create my own events with epileptic spikes. I've created the event using a
numpy array format, event = np.array([sample no, 0, event-id]), and the
epoch using mne.Epochs. However, mne consistently marks my epochs as "bad"
and removes them, even if I specify that they should all be used. What can
I do to avoid this? Or how should one preferably create such epochs?

Best,
Karin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180420/044aeca4/attachment.html

External Email - Use Caution

hi,

you may need to add raw.first_samp to the "sample no "

event = np.array([[raw.first_samp + sample_no, 0, event-id]])

HTH
Alex