<div dir="ltr">I solved with read_montage but I did not understand why
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">read_dig_montage did not work.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks a lot for the help<br></span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-13 20:55 GMT+01:00 Teon Brooks <span dir="ltr"><<a href="mailto:teon.brooks@gmail.com" target="_blank">teon.brooks@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hey Edoardo,</div><div><br></div><div>There are two possible solutions for this. You can use the `read_montage` function and construct an `.hpts` file. It's a four column space delimited text file with the given extension. You can set the unit parameter to 'm', 'mm', 'cm'. You can then use the `set_montage` as Marijn suggested. Each line should be as follow:</div><div><br></div><div><span class="m_-2051271258708120932m_4414725839236070511gmail-pl-s"><span class="m_-2051271258708120932m_4414725839236070511gmail-pl-pds"></span>eeg Fp1 -95.0 -3. -3<span class="m_-2051271258708120932m_4414725839236070511gmail-pl-cce"></span></span></div><div><br></div><div>The other solution would be to construct a fif file with the digitized electrode information. For this, I don't know how to advise you.</div><div><br></div><div>HTH,<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Feb 13, 2018 at 1:40 AM, Edoardo Pinzuti <span dir="ltr"><<a href="mailto:edoardo.pinzuti@gmail.com" target="_blank">edoardo.pinzuti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Marijn<div><br></div><div>thanks. Did not help. If I print digitization I see channels 0. Should the dig montage look different?</div><div><br></div><div><DigMontage | 57 extras (headshape), 54 HPIs, 3 fiducials, 0 channels><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-12 23:27 GMT+01:00 Marijn van Vliet <span dir="ltr"><<a href="mailto:w.m.vanvliet@gmail.com" target="_blank">w.m.vanvliet@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Edoardo,<br>
<br>
try: epochs.set_montage(digitizatio<wbr>n, set_dig=True)<br>
<br>
best,<br>
Marijn.<br>
<div><div class="m_-2051271258708120932m_4414725839236070511m_-911914461617802000h5"><br>
> On 13 Feb 2018, at 00:50, Edoardo Pinzuti <<a href="mailto:edoardo.pinzuti@gmail.com" target="_blank">edoardo.pinzuti@gmail.com</a>> wrote:<br>
><br>
> Dear everyone,<br>
><br>
> I have a problem in loading the digitization of electrode in the epochs objects.<br>
><br>
> I created the epochs<br>
> info = create_info(chan_names, sfreq, chan_types )<br>
> epochs = EpochsArray(data, info, events=None, tmin=np.min(time), verbose=False)<br>
><br>
> digitization = read_dig_montage(hsp=positions<wbr>.copy(), elp=positions.copy(), point_names=labels, unit='mm')<br>
> epochs.set_montage(digitizatio<wbr>n)<br>
> epochs.plot_sensors()<br>
><br>
> when I tried to plot:<br>
> I got this error: RuntimeError: Did not find any digitization points of kind FIFFV_POINT_EEG (3) in the info.<br>
><br>
> How I can solve this?<br>
><br>
> Thanks a lot<br>
><br>
> Edoardo<br>
</div></div>> ______________________________<wbr>_________________<br>
> Mne_analysis mailing list<br>
> <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
> <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a><br>
><br>
><br>
> The information in this e-mail is intended only for the person to whom it is<br>
> addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
> contains patient information, please contact the Partners Compliance HelpLine at<br>
> <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</a> . If the e-mail was sent to you in error<br>
> but does not contain patient information, please contact the sender and properly<br>
> dispose of the e-mail.<br>
<br>
<br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-2051271258708120932m_4414725839236070511gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><a href="http://www.twitter.com/teon_io" style="font-size:12.8px" target="_blank">teon</a><span style="font-size:12.8px">, phd</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<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 it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance 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 in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>