[Mne_analysis] label.center_of_mass function?

Gladia Hotan gladiach at gmail.com
Fri Aug 11 15:00:00 EDT 2017
Search archives:

Hi Eric,

When I try to do label.center_of_mass I get the error "AttributeError:
'Label' object has no attribute 'center_of_mass'". However,
SourceEstimate.center_of_mass does work. Do I need to do something to the
label to access the function?

Thanks and Best,
Gladia

On Fri, Aug 11, 2017 at 2:42 PM, Eric Larson <larson.eric.d at gmail.com>
wrote:

> Yes indeed:
>
> https://mne-tools.github.io/dev/generated/mne.Label.html#
> mne.Label.center_of_mass
>
> Eric
>
>
> On Fri, Aug 11, 2017 at 2:28 PM, Gladia Hotan <gladiach at gmail.com> wrote:
>
>> Hi,
>>
>> Is there still the function label.center_of_mass which computes the
>> spatial center of mass of a label?
>>
>> Thanks and Best Regards,
>> Gladia
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170811/184bf50c/attachment-0001.html 


More information about the Mne_analysis mailing list