<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 13, 2016 at 7:51 PM, Nico Adelhöfer <span dir="ltr"><<a href="mailto:nico.adelhoefer@st.ovgu.de" target="_blank">nico.adelhoefer@st.ovgu.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For me it now says that the name 'int32' is not defined. </blockquote><div><br></div><div>You might have to do np,int32 then.<br><br></div><div>Mainak<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When I<br>
exclude the dtype parameter, I get no error when plotting. :) But now<br>
I also don't see any annotations in the plot.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Quoting Mainak Jas <<a href="mailto:mainakjas@gmail.com">mainakjas@gmail.com</a>>:<br>
<br>
> okay. There seems to be some problem with the date in your measurement info.<br>
><br>
> This should fix it:<br>
><br>
> <a href="http://raw.info" rel="noreferrer" target="_blank">raw.info</a>['meas_date'] = np.array([1463353331, 0], dtype=int32)<br>
><br>
> Let us know if you still get the error after that.<br>
><br>
> Mainak<br>
><br>
> On Sat, Aug 13, 2016 at 1:23 AM, Nico Adelhöfer <<a href="mailto:nico.adelhoefer@st.ovgu.de">nico.adelhoefer@st.ovgu.de</a>><br>
> wrote:<br>
><br>
>> Hello,<br>
>><br>
>> I get:<br>
>> array([1463353331])<br>
>><br>
>> Nico<br>
>><br>
>><br>
>> Quoting Mainak Jas <<a href="mailto:mainakjas@gmail.com">mainakjas@gmail.com</a>>:<br>
>><br>
>> > Hi Nico,<br>
>> ><br>
>> > Before we try to debug any further, can you let us know what<br>
>> > <a href="http://raw.info" rel="noreferrer" target="_blank">raw.info</a>['meas_date']<br>
>> > looks like in your data?<br>
>> ><br>
>> > Mainak<br>
>> ><br>
>> > On Thu, Aug 11, 2016 at 7:21 PM, Nico Adelhöfer <<br>
>> <a href="mailto:nico.adelhoefer@st.ovgu.de">nico.adelhoefer@st.ovgu.de</a>><br>
>> > wrote:<br>
>> ><br>
>> >> Hello,<br>
>> >><br>
>> >> can someone tell me what the problem might be here? When trying to<br>
>> >> plot annotations, I get an IndexError in the file annotations.py:<br>
>> >><br>
>> >> --> 122 meas_date = meas_date[0] + meas_date[1] / 1000000.<br>
>> >><br>
>> >> My commands are:<br>
>> >><br>
>> >> onset = [1] # also tried [1 + raw.first_samp]<br>
>> >> dur = [5]<br>
>> >> raw.annotations = mne.Annotations(onset, dur, 'bad')<br>
>> >> raw.plot() # here comes the error<br>
>> >><br>
>> >> The raw file here is fif. I saved an edf using raw.save, cutting parts<br>
>> >> from the beginning and the end of the recording. In the edf file there<br>
>> >> is no error.<br>
>> >><br>
>> >> Thanks,<br>
>> >> Nico<br>
>> >><br>
>> >> ______________________________<wbr>_________________<br>
>> >> Mne_analysis mailing list<br>
>> >> <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
>> >> <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
>> >><br>
>> >><br>
>> >> The information in this e-mail is intended only for the person to whom<br>
>> it<br>
>> >> is<br>
>> >> addressed. If you believe this e-mail was sent to you in error and the<br>
>> >> e-mail<br>
>> >> contains patient information, please contact the Partners Compliance<br>
>> >> HelpLine at<br>
>> >> <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>complianceline</a> . If the e-mail was sent to you<br>
>> in<br>
>> >> error<br>
>> >> but does not contain patient information, please contact the sender and<br>
>> >> properly<br>
>> >> dispose of the e-mail.<br>
>> >><br>
>> >><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Mne_analysis mailing list<br>
>> <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
>> <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
>><br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a></div></div></blockquote></div><br></div></div>