<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="auto">Ee</div><div class="gmail_extra"><br><div class="gmail_quote">On 17 Jan 2019 5:29 pm, &quot;Lidia Miguel Telega&quot; &lt;<a href="mailto:lidia.migueltelega@gmail.com">lidia.migueltelega@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text"><p><span style="padding:3px 10px;border-radius:5px;color:#ffffff;font-weight:bold;display:inline-block;background-color:#ff0000">        External Email - Use Caution        </span></p><p></p></div><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks for your fast answer.<div><br></div><div>This I&#39;ve already tried several times but I tried again in case, but still is not working...</div><div><br></div><div>when I want to do: </div><div><br></div><div>- <font color="#cc0000">ica.plot_components() </font>I get the following error: <font color="#ff0000">arrays used as indices must be of interger  or (boolean) type.</font></div><div><br></div><div>and when trying:</div><div><br></div><div>- <font color="#ff0000">ica.plot_properties(raw) </font>I get that some electrodes have <font color="#ff0000">overlapping positions </font>even though the montage fits only 24 channels out of 53 channels that are contained in <a href="http://raw.info" target="_blank" rel="noreferrer">raw.info</a>[&#39;ch_names&#39;] and I listed in [&#39;bads&#39;] 28 out of the 53 that I do not want to use.</div><div><br></div><div>The ones displayed in the error as overlapped are EOGl, EOGr, EOGV, EMGChin from which EMGChin is the only one contained in &#39;bads&#39;.</div><div><br></div><div><br></div><div>The code I am using is the following one:</div><div><br></div><div>rawB0939=mne.io.read_raw_edf(&#39;B0939.edf&#39;,preload=&#39;data_preload&#39;)<br></div><div><div>rawB0939_copy=rawB0939.copy()</div><div><br></div><div>rawB0939.info[&#39;bads&#39;]=[&#39;AUX&#39;,&#39;ECG&#39;,&#39;Lage&#39;,&#39;Licht&#39;,&#39;Akku&#39;,&#39;Beweg.&#39;,&#39;EOGl:M1&#39;,&#39;EOGl:M2&#39;,&#39;EOGr:M1&#39;,&#39;C3:M2&#39;,&#39;C4:M1&#39;,&#39;Fz:M1&#39;,&#39;Oz:M1&#39;,&#39;EOGr:M2&#39;,&#39;F4:M1&#39;,&#39;O2:M1&#39;,&#39;F3:M2&#39;,&#39;O1:M2&#39;,&#39;Fz:M2&#39;,&#39;Oz:M2&#39;,&#39;Fp1:M1&#39;,&#39;Fp2:M1&#39;,&#39;T3:M1&#39;,&#39;T4:M1&#39;,&#39;P3:M1&#39;,&#39;P4:M1&#39;,&#39;F3:M1&#39;,&#39;STI 014&#39;]</div><div>rawB0939_copy.info[&#39;bads&#39;]=[&#39;AUX&#39;,&#39;ECG&#39;,&#39;Lage&#39;,&#39;Licht&#39;,&#39;Akku&#39;,&#39;Beweg.&#39;,&#39;EOGl:M1&#39;,&#39;EOGl:M2&#39;,&#39;EOGr:M1&#39;,&#39;C3:M2&#39;,&#39;C4:M1&#39;,&#39;Fz:M1&#39;,&#39;Oz:M1&#39;,&#39;EOGr:M2&#39;,&#39;F4:M1&#39;,&#39;O2:M1&#39;,&#39;F3:M2&#39;,&#39;O1:M2&#39;,&#39;Fz:M2&#39;,&#39;Oz:M2&#39;,&#39;Fp1:M1&#39;,&#39;Fp2:M1&#39;,&#39;T3:M1&#39;,&#39;T4:M1&#39;,&#39;P3:M1&#39;,&#39;P4:M1&#39;,&#39;F3:M1&#39;,&#39;STI 014&#39;]</div><div><br></div><div>rawB0939_copy.crop(tmin=4936,tmax=5300)   </div><div>rawB0939_copy.plot()  </div><div><br></div><div># DOWNSAMPLING AND FILTERING CROPPED DATA #</div><div>rawB0939_copy.resample(100) # downsampling to 100 Hz ( performs LPF followed by decimation)</div><div>rawB0939_copy.filter(l_freq=49.0,h_freq=3.0) # to perform ICA</div></div><div><br></div><div># MONTAGE #</div><div><div>rawB0939_copy.set_montage(&#39;standard_1020&#39;) # 24 channels with positions established</div><div><br></div><div># ICA #</div><div>method=&#39;fastica&#39;</div><div>ica=ICA(method=method)</div><div>print(ica)</div><div><br></div><div>ica.fit(rawB0939_copy) </div><div>print(ica)</div><div>ica_components=ica.get_components()</div></div><div><br></div><div><span style="background-color:rgb(255,255,255)"><font color="#cc0000">ica.plot_components(ica_components)</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#cc0000">ica.plot_properties(rawB0939_copy)</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#cc0000"><br></font></span></div><div><font color="#000000">Do you have some idea how to solve it? I am trying many things but I get errors through all the ways.<br></font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks a lot!</font></div><div><br></div><div><br></div></div></div></div><div class="elided-text"><br><div class="gmail_quote"><div dir="ltr" class="m_-5687542297002260902gmail-m_-4137419003067892497gmail_attr">El mié., 16 ene. 2019 a las 16:22, Brunner, Clemens (<a href="mailto:clemens.brunner@uni-graz.at" target="_blank" rel="noreferrer">clemens.brunner@uni-graz.at</a>) (&lt;<a href="mailto:clemens.brunner@uni-graz.at" target="_blank" rel="noreferrer">clemens.brunner@uni-graz.at</a>&gt;) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">        External Email - Use Caution        <br>
<br>
Hi!<br>
<br>
Have you tried<br>
<br>
raw.set_montage(&quot;standard_1020&quot;)<br>
<br>
You can get all montages by<br>
<br>
mne.channels.get_builtin_montages()<br>
<br>
Use the montage that contains all (or at least most) of your channel names. If you have exotic names, maybe you can map them to names contained in one of the standard montages.<br>
<br>
Clemens<br>
<br>
<br>
<br>
&gt; On 16.01.2019, at 15:33, Lidia Miguel Telega &lt;<a href="mailto:lidia.migueltelega@gmail.com" target="_blank" rel="noreferrer">lidia.migueltelega@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt;         External Email - Use Caution        <br>
&gt; <br>
&gt; <br>
&gt; Hi,<br>
&gt; <br>
&gt; I am struggling to setting up channel locations...<br>
&gt; I&#39;d like to know if there is a way to set up automatically standardize channel locations from the channel names since in my raw data file I only have the names. I am looking for a way which does not impply to set up a new montage (which I tried but it did not work as some channels resulted to be overlapped and I think is not the proper way to do it) or load the positions contained in a file. <br>
&gt; The result of the method I am looking for, I guess would add the locations to the &#39;dig&#39; (digitization points) option in <a href="http://raw.info" rel="noreferrer noreferrer" target="_blank">raw.info</a> if I am right? This is the part which gives me error for all the functions I use (error: &#39;digitization points not found&#39;)<br>
&gt; <br>
&gt; Kind regards and thank you for the help,<br>
&gt; <br>
&gt; Lidia.<br>
&gt; <br>
&gt;  <br>
&gt; <br>
&gt; -- <br>
&gt; Lidia Miguel Telega<br>
&gt; M. Sc. Neuroscience<br>
&gt; Albert-Ludwigs-University of Freiburg, Germany<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank" rel="noreferrer">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank" rel="noreferrer">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-5687542297002260902gmail-m_-4137419003067892497gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><em><strong><font color="#666666" face="georgia,serif" size="2">Lidia Miguel Telega</font></strong></em></div><div><em style="font-size:12.8px"><font color="#666666"><font face="georgia,serif" size="2">M. Sc. Neuroscience</font></font></em><br></div><div><font face="georgia, serif"><i><span style="color:rgb(106,106,106);font-size:small">Albert-Ludwigs-</span><span style="color:rgb(84,84,84);font-size:small">University of Freiburg, Germany</span></i></font><em style="font-size:12.8px"><font color="#666666"><font face="georgia,serif" size="2"><br></font></font></em></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank" rel="noreferrer">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></div></blockquote></div><br></div>

<br>
<hr><font face="Verdana" size="1"><b>Disclaimer: </b>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.</font>