def get_sources(self, inst, add_channels=None, start=None, stop=None):
        if isinstance(inst, _BaseRaw):
            sources = self._sources_as_raw(inst, add_channels, start, stop)
        elif isinstance(inst, _BaseEpochs):
            sources = self._sources_as_epochs(inst, add_channels, False)
        elif isinstance(inst, Evoked):
            sources = self._sources_as_evoked(inst, add_channels)
        else:
            raise ValueError('Data input must be of Raw, Epochs or Evoked '
                             'type')

        return sources
Estimate sources given the unmixing matrix
dataset/ETHPy150Open mne-tools/mne-python/mne/preprocessing/ica.py/ICA.get_sources