[Mne_analysis] label.center_of_mass function?

Gladia Hotan gladiach at gmail.com
Mon Aug 14 15:49:40 EDT 2017
Search archives:

Hi Eric,

I'm trying to update MNE on a Martinos Center computer but
pip install mne --upgrade
returns a 'Permission denied' error. How can I get the latest version at
the Martinos Center?

Thanks and Best,
Gladia

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

> Hi Eric,
>
> That must be it- my version is 0.11.0. I'll try to update and try again.
> Thanks!
>
> Best,
> Gladia
>
> On Fri, Aug 11, 2017 at 15:18 Eric Larson <larson.eric.d at gmail.com> wrote:
>
>> 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.
>>>
>>>
>> _______________________________________________
>> 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/20170814/132c9ada/attachment-0001.html 


More information about the Mne_analysis mailing list