You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Additional functions to take the "average" of EpochsTFR? #8878
Would it be possible to add additional combination possibilities, such as np.median, np.percentile, such that average(func) is now possible, with the list of funcs being possible are numpy functions that operate along the epochs axis.
Describe possible alternatives
One can always compute this themselves, I suppose, but then they lose access to AverageTFR api functionality.
Should I keep the average() function name as is and just allow optional kwarg func?
Should I also specify how the "average" was taken in the AverageTFR.comments? So if I use np.median instead of np.mean, i'll pass in AverageTFR(..., comments=self.comment + ' - took average via np.median')?
Activity
agramfort commentedon Feb 16, 2021
adam2392 commentedon Feb 16, 2021
I can then adjust these lines accordingly?
mne-python/mne/time_frequency/tfr.py
Lines 2092 to 2104 in 4df9ed8
Should I keep the
average()function name as is and just allow optional kwargfunc?Should I also specify how the "average" was taken in the
AverageTFR.comments? So if I use np.median instead of np.mean, i'll pass inAverageTFR(..., comments=self.comment + ' - took average via np.median')?agramfort commentedon Feb 16, 2021