<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 & 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"><<a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu" target="_blank">mne_analysis-request@nmr.mgh.harvard.edu</a>></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 'help' 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 "Re: Contents of Mne_analysis digest..."<br>
<br>
<br>
Today'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 <<a href="mailto:ktavabi@uw.edu">ktavabi@uw.edu</a>><br>
Subject: [Mne_analysis] MNEpy stc to label<br>
To: "<<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>>"<br>
<<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a>><br>
Message-ID:<br>
<CACGoKCkGTLTnZ+pi8_T2QU0A=<a href="mailto:HQjU7_LuQFvc%2B3JoV3EkoT1PQ@mail.gmail.com">HQjU7_LuQFvc+3JoV3EkoT1PQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<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., "index 4098 is out of bounds for axis 0 with<br>
size 4098" 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 & 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 <<a href="mailto:alexandre.gramfort@telecom-paristech.fr">alexandre.gramfort@telecom-paristech.fr</a>><br>
Subject: Re: [Mne_analysis] MNEpy stc to label<br>
To: Discussion and support forum for the users of MNE Software<br>
<<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a>><br>
Message-ID:<br>
<<a href="mailto:CADeotZoWG994W6B1nGZWn6Aq3A2wW6_HnO6x3K7W6V0XtiGGTQ@mail.gmail.com">CADeotZoWG994W6B1nGZWn6Aq3A2wW6_HnO6x3K7W6V0XtiGGTQ@mail.gmail.com</a>><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 <<a href="mailto:ktavabi@uw.edu">ktavabi@uw.edu</a>> wrote:<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., "index 4098 is out of bounds for axis 0 with<br>
> size 4098" 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 & 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>
><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>
><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<br>
> e-mail<br>
> contains patient information, please contact the Partners Compliance<br>
> 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<br>
> error<br>
> but does not contain patient information, please contact the sender and<br>
> properly<br>
> dispose of the e-mail.<br>
><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>