<div dir="ltr">This is great help. Thanks Martin!<div class="gmail_extra"><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>Best wishes,<br><br></div>Vincent Rupp Jr<br></div></div>
<br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 10:19 AM, Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:gramfort@nmr.mgh.harvard.edu" target="_blank">gramfort@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">hi Vincent,<br>
<br>
looks like your problem is fixed. Thanks Martin.<br>
<br>
<a href="https://github.com/mne-tools/mne-python/pull/550" target="_blank">https://github.com/mne-tools/mne-python/pull/550</a><br>
<br>
Best,<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Apr 2, 2013 at 7:13 PM, Martin Luessi<br>
&lt;<a href="mailto:mluessi@nmr.mgh.harvard.edu">mluessi@nmr.mgh.harvard.edu</a>&gt; wrote:<br>
&gt; Hi Vincent,<br>
&gt;<br>
&gt; You are correct, the loaded label isn&#39;t used at all. It must be a &quot;copy<br>
&gt; paste artifact&quot; from when the example was created.<br>
&gt;<br>
&gt; To your question, if you want to use multiple labels, you can just<br>
&gt; combine them using &quot;+&quot;, e.g.,<br>
&gt;<br>
&gt; label_both = label_lh + label_rh<br>
&gt;<br>
&gt; and then pass label_both to compute_source_psd_epochs using the label<br>
&gt; parameter. The resulting SourceEstimate will contain the PSD for all<br>
&gt; labels (the union of all the source space vertices in the labels). Let<br>
&gt; me know if you need help splitting the data into the labels again (it&#39;s<br>
&gt; a few lines of Python code).<br>
&gt;<br>
&gt; I hope this helps.<br>
&gt;<br>
&gt; Martin<br>
&gt;<br>
&gt; On 04/02/13 12:47, Vincent Rupp Jr. wrote:<br>
&gt;&gt; Greetings,<br>
&gt;&gt;<br>
&gt;&gt; There is an example script called &quot;Compute Power Spectral Density of<br>
&gt;&gt; inverse solution from single epochs&quot; at<br>
&gt;&gt; <a href="http://martinos.org/mne/auto_examples/time_frequency/plot_compute_source_psd_epochs.html#example-time-frequency-plot-compute-source-psd-epochs-py" target="_blank">http://martinos.org/mne/auto_examples/time_frequency/plot_compute_source_psd_epochs.html#example-time-frequency-plot-compute-source-psd-epochs-py</a>.<br>


&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I noticed that after defining and loading the label into memory, it is<br>
&gt;&gt; never mentioned again. Line #60 of the script says &quot;compute source space<br>
&gt;&gt; psd in label&quot; and involves calling the compute_source_psd_epochs()<br>
&gt;&gt; function, but the label variable is never passed into it as an argument.<br>
&gt;&gt; Does this function automatically seek a previously defined variable<br>
&gt;&gt; called label? Are there any options for what labels, how many labels,<br>
&gt;&gt; etc., can be fed into it?<br>
&gt;&gt;<br>
&gt;&gt; I want to load a label like lh.BA45.label, but I want it to perform the<br>
&gt;&gt; psd computations on /both/ hemispheres. So far it seems like you can<br>
&gt;&gt; only load one hemisphere at a time.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Best wishes,<br>
&gt;&gt;<br>
&gt;&gt; Vincent Rupp Jr<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&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;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Martin Luessi, Ph.D.<br>
&gt;<br>
&gt; Research Fellow<br>
&gt;<br>
&gt; Department of Radiology<br>
&gt; Athinoula A. Martinos Center for Biomedical Imaging<br>
&gt; Massachusetts General Hospital<br>
&gt; Harvard Medical School<br>
&gt; 149 13th Street<br>
&gt; Charlestown, MA 02129<br>
&gt;<br>
&gt; Fax: <a href="tel:%2B1%20617%20726-7422" value="+16177267422">+1 617 726-7422</a><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 e-mail<br>
&gt; contains patient information, please contact the Partners Compliance 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 error<br>
&gt; but does not contain patient information, please contact the sender and properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>