<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"><<a href="mailto:gramfort@nmr.mgh.harvard.edu" target="_blank">gramfort@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">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>
<<a href="mailto:mluessi@nmr.mgh.harvard.edu">mluessi@nmr.mgh.harvard.edu</a>> wrote:<br>
> Hi Vincent,<br>
><br>
> You are correct, the loaded label isn't used at all. It must be a "copy<br>
> paste artifact" from when the example was created.<br>
><br>
> To your question, if you want to use multiple labels, you can just<br>
> combine them using "+", e.g.,<br>
><br>
> label_both = label_lh + label_rh<br>
><br>
> and then pass label_both to compute_source_psd_epochs using the label<br>
> parameter. The resulting SourceEstimate will contain the PSD for all<br>
> labels (the union of all the source space vertices in the labels). Let<br>
> me know if you need help splitting the data into the labels again (it's<br>
> a few lines of Python code).<br>
><br>
> I hope this helps.<br>
><br>
> Martin<br>
><br>
> On 04/02/13 12:47, Vincent Rupp Jr. wrote:<br>
>> Greetings,<br>
>><br>
>> There is an example script called "Compute Power Spectral Density of<br>
>> inverse solution from single epochs" at<br>
>> <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>
>><br>
>><br>
>> I noticed that after defining and loading the label into memory, it is<br>
>> never mentioned again. Line #60 of the script says "compute source space<br>
>> psd in label" and involves calling the compute_source_psd_epochs()<br>
>> function, but the label variable is never passed into it as an argument.<br>
>> Does this function automatically seek a previously defined variable<br>
>> called label? Are there any options for what labels, how many labels,<br>
>> etc., can be fed into it?<br>
>><br>
>> I want to load a label like lh.BA45.label, but I want it to perform the<br>
>> psd computations on /both/ hemispheres. So far it seems like you can<br>
>> only load one hemisphere at a time.<br>
>><br>
>><br>
>> Best wishes,<br>
>><br>
>> Vincent Rupp Jr<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>
><br>
> --<br>
> Martin Luessi, Ph.D.<br>
><br>
> Research Fellow<br>
><br>
> Department of Radiology<br>
> Athinoula A. Martinos Center for Biomedical Imaging<br>
> Massachusetts General Hospital<br>
> Harvard Medical School<br>
> 149 13th Street<br>
> Charlestown, MA 02129<br>
><br>
> Fax: <a href="tel:%2B1%20617%20726-7422" value="+16177267422">+1 617 726-7422</a><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 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>
</div></div></blockquote></div><br></div></div>