'Aux method.'

def _apply_evoked(self, evoked, include, exclude, n_pca_components):

    picks = pick_types(evoked.info, meg=False, ref_meg=False, include=self.ch_names, exclude='bads')
    if (len(picks) != len(self.ch_names)):
        raise RuntimeError(("Evoked    does    not    match    fitted    data:    %i    channels    fitted    but    %i    channels    supplied.    \nPlease    provide    an    Evoked    object    that's    compatible    with    ica.ch_names" % (len(self.ch_names), len(picks))))
    if (n_pca_components is not None):
        self.n_pca_components = n_pca_components
    data = evoked.data[picks]
    (data, _) = self._pre_whiten(data, evoked.info, picks)
    data = self._pick_sources(data, include=include, exclude=exclude)
    evoked.data[picks] = data
    return evoked
