[Mne_analysis] Grand average in MNE-python

Denis-Alexander Engemann denis.engemann at gmail.com
Tue Feb 11 17:13:37 EST 2014
Search archives:

Sorry Mads,

too fast, it only works with np.sum or sum from the standardlib.

In [7]: np.sum([evoked, evoked]).nave
Out[7]: 104

You might then want to divide by .nave


On Tue, Feb 11, 2014 at 11:08 PM, Denis-Alexander Engemann
<denis.engemann at gmail.com> wrote:
> Hi Mads,
> with stc objects and evoked objects in Python you can use numpy
> functions to accumulate.
> grand_ave = np.mean([evoked1, evoked2, evoked3])
> which will produce another evoked.
> The same works for stcs.
> HTH,
> Denis
> On Tue, Feb 11, 2014 at 11:01 PM, Mads Jensen <mje.mads at gmail.com> wrote:
>> Hi MNE community,
>> Is there a way to make a grand average of evoked files, and of source
>> estimations in MNE-python?
>> best,
>> mads
>> _______________________________________________
>> 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.

More information about the Mne_analysis mailing list