<div dir="ltr">Or could it alternatively be possible to plot also the bad channels? <div><br></div><div>I have: </div><div><br></div><div> picks = mne.pick_types(<a href="http://evoked_raw.info">evoked_raw.info</a>,selection=selection)<br>
</div><div><br></div><div>I think that this shouldn&#39;t exclude bads because I have not exclude=&#39;bads&#39;.</div><div><br></div><div>However, picks doesn&#39;t include the channels in selection that are marked as bad.</div>
<div><br></div><div>In the reference of mne.picks_type it is said:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px">exclude</span><span style="color:rgb(0,0,0);font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px"> </span><span style="color:rgb(0,0,0);font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px">: list of string | str</span></div>
<blockquote style="color:rgb(0,0,0);font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px"><p style="margin:0px 0px 0.5em">List of channels to exclude. If empty do not exclude any (default). If ‘bads’, exclude channels in info[‘bads’]</p>
<p style="margin:0px 0px 0.5em"><br></p><p style="margin:0px 0px 0.5em">-Maria</p></blockquote></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 19:02 GMT+03:00 Maria Hakonen <span dir="ltr">&lt;<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There was one channel two times in selection...<div><br></div><div>However, it seems to cause a problem if some of the channels in selection is bad.</div>
<div>I would like to plot a subset of channels from each data file in a loop as follows:</div>
<div><br></div><div><div>picks = mne.pick_types(<a href="http://evoked.info" target="_blank">evoked.info</a>,selection=selection)</div><div><br></div><div>                idx = 0</div><div>                for ax_row in axes:</div>
<div>                        for ax in ax_row:</div>
<div>                                ax.plot(evoked_raw.times, evoked_raw.data[picks[idx]])</div><div>                                idx += 1</div></div><div><br></div><div>Is it somehow possible to, for example, plot a blank plot if there is a bad channel in selection?</div>

<div><br></div><div>-Maria <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 15:05 GMT+03:00 Denis-Alexander Engemann <span dir="ltr">&lt;<a href="mailto:denis.engemann@gmail.com" target="_blank">denis.engemann@gmail.com</a>&gt;</span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hi,<br><br><div class="gmail_quote">2014-08-27 14:02 GMT+02:00 Maria Hakonen <span dir="ltr">&lt;<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>&gt;</span>:<div>

<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I manged to solve this already.<div><br></div></div></blockquote><div><br></div></div><div>now I&#39;m curious, what was the problem?</div>

<span><font color="#888888">

<div><br></div><div>-Denis</div></font></span><div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>-Maria</div>
</div><div class="gmail_extra">
<br>
<br><div class="gmail_quote">2014-08-27 13:11 GMT+03:00 Maria Hakonen <span dir="ltr">&lt;<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>&gt;</span>:<div><div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have one bad channel but it is not included in selection. Can it however cause problems?<div><br></div>




<div>-Maria</div><div><br></div><div>Here are the outputs:</div><div><div><a href="http://evoked.info" target="_blank">evoked.info</a>[&#39;bads&#39;]</div>
<div>Out[54]: [u&#39;MEG 2511&#39;]</div></div><div><br></div><div>but </div><div><br></div><div><div>In [53]: selection</div><div>Out[53]:</div><div>[&#39;MEG 0133&#39;,</div><div> &#39;MEG 0212&#39;,</div><div> &#39;MEG 0223&#39;,</div>





<div> &#39;MEG 1313&#39;,</div><div> &#39;MEG 1322&#39;,</div><div> &#39;MEG 1443&#39;,</div><div> &#39;MEG 0132&#39;,</div><div> &#39;MEG 0213&#39;,</div><div> &#39;MEG 0222&#39;,</div><div> &#39;MEG 1312&#39;,</div><div>





 &#39;MEG 1323&#39;,</div><div> &#39;MEG 1442&#39;,</div><div> &#39;MEG 1513&#39;,</div><div> &#39;MEG 0242&#39;,</div><div> &#39;MEG 0233&#39;,</div><div> &#39;MEG 1343&#39;,</div><div> &#39;MEG 1332&#39;,</div><div> &#39;MEG 2613&#39;,</div>





<div> &#39;MEG 1512&#39;,</div><div> &#39;MEG 0243&#39;,</div><div> &#39;MEG 0232&#39;,</div><div> &#39;MEG 1343&#39;,</div><div> &#39;MEG 1333&#39;,</div><div> &#39;MEG 2612&#39;,</div><div> &#39;MEG 1523&#39;,</div><div>





 &#39;MEG 1612&#39;,</div><div> &#39;MEG 1623&#39;,</div><div> &#39;MEG 2413&#39;,</div><div> &#39;MEG 2422&#39;,</div><div> &#39;MEG 2643&#39;,</div><div> &#39;MEG 1522&#39;,</div><div> &#39;MEG 1613&#39;,</div><div> &#39;MEG 1622&#39;,</div>





<div> &#39;MEG 2412&#39;,</div><div> &#39;MEG 2423&#39;,</div><div> &#39;MEG 2642&#39;]</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 12:56 GMT+03:00 Denis-Alexander Engemann <span dir="ltr">&lt;<a href="mailto:denis.engemann@gmail.com" target="_blank">denis.engemann@gmail.com</a>&gt;</span>:<div>




<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Maria,</div><div><br></div>Do you have one bad channel? Take a look at <a href="http://evoked.info" target="_blank">evoked.info</a>[&#39;bads&#39;]<div>





pick types automatically excludes those.</div><div><br></div><div>

-Denis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 11:53 GMT+02:00 Maria Hakonen <span dir="ltr">&lt;<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>&gt;</span>:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi all,<div><br></div><div>I have used mne.pick_types as follows:</div><div><br></div>
<div>picks = mne.pick_types(<a href="http://evoked.info" target="_blank">evoked.info</a>,selection=selection)<br>

</div><div><br></div><div>
where selection includes 36 channel names. </div><div>However, picks is an array with only 35 elements.</div><div>I wonder what could be wrong there? </div><div><br></div><div>Regards,</div><div>Maria</div></div>
<br></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_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" target="_blank">http://www.partners.org/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>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_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" target="_blank">http://www.partners.org/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></div></div><br></div>
</blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_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" target="_blank">http://www.partners.org/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></div></div><br></div></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_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" target="_blank">http://www.partners.org/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></div></div><br></div>
</blockquote></div><br></div>