<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">&lt;<a href="mailto:nico.adelhoefer@st.ovgu.de" target="_blank">nico.adelhoefer@st.ovgu.de</a>&gt;</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 &#39;int32&#39; 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&#39;t see any annotations in the plot.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Quoting Mainak Jas &lt;<a href="mailto:mainakjas@gmail.com">mainakjas@gmail.com</a>&gt;:<br>
<br>
&gt; okay. There seems to be some problem with the date in your measurement info.<br>
&gt;<br>
&gt; This should fix it:<br>
&gt;<br>
&gt; <a href="http://raw.info" rel="noreferrer" target="_blank">raw.info</a>[&#39;meas_date&#39;] = np.array([1463353331, 0], dtype=int32)<br>
&gt;<br>
&gt; Let us know if you still get the error after that.<br>
&gt;<br>
&gt; Mainak<br>
&gt;<br>
&gt; On Sat, Aug 13, 2016 at 1:23 AM, Nico Adelhöfer &lt;<a href="mailto:nico.adelhoefer@st.ovgu.de">nico.adelhoefer@st.ovgu.de</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I get:<br>
&gt;&gt; array([1463353331])<br>
&gt;&gt;<br>
&gt;&gt; Nico<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Quoting Mainak Jas &lt;<a href="mailto:mainakjas@gmail.com">mainakjas@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi Nico,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Before we try to debug any further, can you let us know what<br>
&gt;&gt; &gt; <a href="http://raw.info" rel="noreferrer" target="_blank">raw.info</a>[&#39;meas_date&#39;]<br>
&gt;&gt; &gt; looks like in your data?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Mainak<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Aug 11, 2016 at 7:21 PM, Nico Adelhöfer &lt;<br>
&gt;&gt; <a href="mailto:nico.adelhoefer@st.ovgu.de">nico.adelhoefer@st.ovgu.de</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; can someone tell me what the problem might be here? When trying to<br>
&gt;&gt; &gt;&gt; plot annotations, I get an IndexError in the file annotations.py:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --&gt; 122         meas_date = meas_date[0] + meas_date[1] / 1000000.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; My commands are:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; onset = [1] # also tried [1 + raw.first_samp]<br>
&gt;&gt; &gt;&gt; dur = [5]<br>
&gt;&gt; &gt;&gt; raw.annotations = mne.Annotations(onset, dur, &#39;bad&#39;)<br>
&gt;&gt; &gt;&gt; raw.plot() # here comes the error<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The raw file here is fif. I saved an edf using raw.save, cutting parts<br>
&gt;&gt; &gt;&gt; from the beginning and the end of the recording. In the edf file there<br>
&gt;&gt; &gt;&gt; is no error.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks,<br>
&gt;&gt; &gt;&gt; Nico<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
&gt;&gt; &gt;&gt; <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>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The information in this e-mail is intended only for the person to whom<br>
&gt;&gt; it<br>
&gt;&gt; &gt;&gt; is<br>
&gt;&gt; &gt;&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt;&gt; &gt;&gt; e-mail<br>
&gt;&gt; &gt;&gt; contains patient information, please contact the Partners Compliance<br>
&gt;&gt; &gt;&gt; HelpLine at<br>
&gt;&gt; &gt;&gt; <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>
&gt;&gt; in<br>
&gt;&gt; &gt;&gt; error<br>
&gt;&gt; &gt;&gt; but does not contain patient information, please contact the sender and<br>
&gt;&gt; &gt;&gt; properly<br>
&gt;&gt; &gt;&gt; dispose of the e-mail.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
&gt;&gt; <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>
&gt;&gt;<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>