[Mne_analysis] label.center_of_mass function?

Eric Larson larson.eric.d at gmail.com
Fri Aug 11 15:17:25 EDT 2017
Search archives:

Are you on an old version of MNE (mne.__version__)? I get this on latest
`master` and the 0.14.1 branch:

>>> label = mne.read_label(mne.datasets.sample.data_path() + '/subjects/sample/label/lh.BA45.label')
>>> label.center_of_mass('sample', subjects_dir=mne.datasets.sample.data_path() + '/subjects')
136871

​
Eric


On Fri, Aug 11, 2017 at 3:00 PM, Gladia Hotan <gladiach at gmail.com> wrote:

> 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.
>>
>>
>
> _______________________________________________
> 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/1d537f6b/attachment.html 


More information about the Mne_analysis mailing list