'Compute average of epochs.
Parameters
picks : array-like of int | None
If None only MEG, EEG, SEEG, ECoG, and fNIRS channels are kept
otherwise the channels indices in picks are kept.
Returns
evoked : instance of Evoked
The averaged epochs.
Notes
Computes an average of all epochs in the instance, even if
they correspond to different conditions. To average by condition,
do ``epochs[condition].average()`` for each condition separately.
When picks is None and epochs contain only ICA channels, no channels
are selected, resulting in an error. This is because ICA channels
are not considered data channels (they are of misc type) and only data
channels are selected when picks is None.'

def average(self, picks=None):

    return self._compute_mean_or_stderr(picks, 'ave')
