[Mne_analysis] Creating events with epileptic spikes

Alexandre Gramfort alexandre.gramfort at inria.fr
Fri Apr 20 08:22:07 EDT 2018
Search archives:

        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


On Fri, Apr 20, 2018 at 1:04 PM, Karin Westin <karin.westin85 at gmail.com> wrote:
>         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
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>



More information about the Mne_analysis mailing list