<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Alex,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I was not able to reproduce this with the MNE sample data. Please find the data files (stc and src) from my study that caused the problem here (<a href="https://www.dropbox.com/sh/qddmd9vr8rg7hw8/00drNDyuqW">https://www.dropbox.com/sh/qddmd9vr8rg7hw8/00drNDyuqW</a>). Thanks in advance. </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Kam</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">
------------------------------------------------------------<br>Kambiz Tavabi PhD<br>Institute for Learning &amp; Brain Sciences<br>1715 Columbia Road N<br>Portage Bay Building<br>Box 357988<br>University of Washington<br>
Seattle, WA 98195-7988<br>Tel: 206-685-6173<br>------------------------------------------------------------</div></div>
<br><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 9:00 AM,  <span dir="ltr">&lt;<a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu" target="_blank">mne_analysis-request@nmr.mgh.harvard.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Mne_analysis mailing list submissions to<br>
        <a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu">mne_analysis-request@nmr.mgh.harvard.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:mne_analysis-owner@nmr.mgh.harvard.edu">mne_analysis-owner@nmr.mgh.harvard.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Mne_analysis digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. MNEpy stc to label (Kambiz Tavabi)<br>
   2. Re: MNEpy stc to label (Alexandre Gramfort)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 8 Apr 2014 12:10:29 -0700<br>
From: Kambiz Tavabi &lt;<a href="mailto:ktavabi@uw.edu">ktavabi@uw.edu</a>&gt;<br>
Subject: [Mne_analysis] MNEpy stc to label<br>
To: &quot;&lt;<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;&quot;<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID:<br>
        &lt;CACGoKCkGTLTnZ+pi8_T2QU0A=<a href="mailto:HQjU7_LuQFvc%2B3JoV3EkoT1PQ@mail.gmail.com">HQjU7_LuQFvc+3JoV3EkoT1PQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi all,<br>
I am trying to use `mne.stc_to_label` to generate the freesurfer label for<br>
connected non-zero vertices. When I pass the `connected=True` argument I<br>
receive an index error i.e., &quot;index 4098 is out of bounds for axis 0 with<br>
size 4098&quot; at ln 667 of label.py. I am using an oct-6 surface source space<br>
with c. 10000 vertices of which 4098 are in use.<br>
<br>
However, when I pass `connected=False` the list of labels is returned. Can<br>
someone tell me why this occurs? and how to get the list of connected<br>
labels?<br>
<br>
regards,<br>
Kam<br>
<br>
<br>
------------------------------------------------------------<br>
Kambiz Tavabi PhD<br>
Institute for Learning &amp; Brain Sciences<br>
1715 Columbia Road N<br>
Portage Bay Building<br>
Box 357988<br>
University of Washington<br>
Seattle, WA 98195-7988<br>
Tel: 206-685-6173<br>
------------------------------------------------------------<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140408/1e189530/attachment-0001.html" target="_blank">http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140408/1e189530/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 9 Apr 2014 08:29:33 +0200<br>
From: Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr">alexandre.gramfort@telecom-paristech.fr</a>&gt;<br>
Subject: Re: [Mne_analysis] MNEpy stc to label<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CADeotZoWG994W6B1nGZWn6Aq3A2wW6_HnO6x3K7W6V0XtiGGTQ@mail.gmail.com">CADeotZoWG994W6B1nGZWn6Aq3A2wW6_HnO6x3K7W6V0XtiGGTQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
hi Kam,<br>
<br>
can you reproduce this on the sample dataset?<br>
<br>
if not can you share a minimum set of files to reproduce the problem?<br>
<br>
Alex<br>
<br>
<br>
On Tue, Apr 8, 2014 at 9:10 PM, Kambiz Tavabi &lt;<a href="mailto:ktavabi@uw.edu">ktavabi@uw.edu</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt; I am trying to use `mne.stc_to_label` to generate the freesurfer label for<br>
&gt; connected non-zero vertices. When I pass the `connected=True` argument I<br>
&gt; receive an index error i.e., &quot;index 4098 is out of bounds for axis 0 with<br>
&gt; size 4098&quot; at ln 667 of label.py. I am using an oct-6 surface source space<br>
&gt; with c. 10000 vertices of which 4098 are in use.<br>
&gt;<br>
&gt; However, when I pass `connected=False` the list of labels is returned. Can<br>
&gt; someone tell me why this occurs? and how to get the list of connected<br>
&gt; labels?<br>
&gt;<br>
&gt; regards,<br>
&gt; Kam<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------<br>
&gt; Kambiz Tavabi PhD<br>
&gt; Institute for Learning &amp; Brain Sciences<br>
&gt; 1715 Columbia Road N<br>
&gt; Portage Bay Building<br>
&gt; Box 357988<br>
&gt; University of Washington<br>
&gt; Seattle, WA 98195-7988<br>
&gt; Tel: 206-685-6173<br>
&gt; ------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <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>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt; e-mail<br>
&gt; contains patient information, please contact the Partners Compliance<br>
&gt; HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt; error<br>
&gt; but does not contain patient information, please contact the sender and<br>
&gt; properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">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>
End of Mne_analysis Digest, Vol 75, Issue 11<br>
********************************************<br>
</blockquote></div><br></div>