system
(system)
August 11, 2017, 6:28pm
1
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170811/8a2823b6/attachment.html
system
(system)
August 11, 2017, 6:42pm
2
system
(system)
August 11, 2017, 7:00pm
3
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
system
(system)
August 11, 2017, 7:17pm
4
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
system
(system)
August 11, 2017, 7:39pm
5
Hi Eric,
That must be it- my version is 0.11.0. I'll try to update and try again.
Thanks!
Best,
Gladia
system
(system)
August 14, 2017, 7:49pm
6
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
system
(system)
August 14, 2017, 8:34pm
7
I'm not sure what the standard procedures are at MGH, but you can do `pip
install --user` to install a new version to your specific user's directory.
Eric
system
(system)
August 14, 2017, 8:38pm
8
Hi Eric,
That seems to have worked. Thanks!
Best,
Gladia