<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't exclude bads because I have not exclude='bads'.</div><div><br></div><div>However, picks doesn'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:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px">exclude</span><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif;letter-spacing:-0.14000000059604645px;line-height:21px"> </span><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',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:'Lucida Grande','Lucida Sans Unicode',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"><<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@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">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"><<a href="mailto:denis.engemann@gmail.com" target="_blank">denis.engemann@gmail.com</a>></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"><<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>></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'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"><<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>></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>['bads']</div>
<div>Out[54]: [u'MEG 2511']</div></div><div><br></div><div>but </div><div><br></div><div><div>In [53]: selection</div><div>Out[53]:</div><div>['MEG 0133',</div><div> 'MEG 0212',</div><div> 'MEG 0223',</div>
<div> 'MEG 1313',</div><div> 'MEG 1322',</div><div> 'MEG 1443',</div><div> 'MEG 0132',</div><div> 'MEG 0213',</div><div> 'MEG 0222',</div><div> 'MEG 1312',</div><div>
'MEG 1323',</div><div> 'MEG 1442',</div><div> 'MEG 1513',</div><div> 'MEG 0242',</div><div> 'MEG 0233',</div><div> 'MEG 1343',</div><div> 'MEG 1332',</div><div> 'MEG 2613',</div>
<div> 'MEG 1512',</div><div> 'MEG 0243',</div><div> 'MEG 0232',</div><div> 'MEG 1343',</div><div> 'MEG 1333',</div><div> 'MEG 2612',</div><div> 'MEG 1523',</div><div>
'MEG 1612',</div><div> 'MEG 1623',</div><div> 'MEG 2413',</div><div> 'MEG 2422',</div><div> 'MEG 2643',</div><div> 'MEG 1522',</div><div> 'MEG 1613',</div><div> 'MEG 1622',</div>
<div> 'MEG 2412',</div><div> 'MEG 2423',</div><div> 'MEG 2642']</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"><<a href="mailto:denis.engemann@gmail.com" target="_blank">denis.engemann@gmail.com</a>></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>['bads']<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"><<a href="mailto:maria.hakonen@gmail.com" target="_blank">maria.hakonen@gmail.com</a>></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>