[Mne_analysis] some questions regarding the source modelling of evoked potentials/fields
Alexandre Gramfort
alexandre.gramfort at inria.fr
Tue Nov 5 15:16:39 EST 2019
External Email - Use Caution
hi Irina,
I tried this:
> morph_group = [morphS1, morphS2, morphS3, morphS4]
> grand_average = mne.SourceEstimate.mean(morph_group)
>
> returns error: "AttributeError: 'list' object has no attribute 'sum'"
>
you can do arithmetic with stcs
you can do:
grand_average = (morphS1 + morphS2 + morphS3 + morphS4) / 4
and this should work
all_stcs = [morphS1, morphS2, morphS3, morphS4]
grand_average = sum(all_stcs) / len(all_stcs)
HTH
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20191105/a0601b43/attachment.html
More information about the Mne_analysis
mailing list