'Load one epoch from disk.'

@verbose
def _get_epoch_from_raw(self, idx, verbose=None):

    event_samp = self.events[(idx, 0)]
    for raw in self._raw:
        idx = np.where((raw.event_samps == event_samp))[0]
        if (len(idx) == 1):
            idx = idx[0]
            size = (np.prod(raw.epoch_shape) * 4)
            offset = (idx * size)
            break
    else:
        raise RuntimeError('Correct    epoch    could    not    be    found,    please    contact    mne-python    developers')
    raw.fid.seek(((raw.data_tag.pos + offset) + 16), 0)
    data = np.fromstring(raw.fid.read(size), '>f4').astype(np.float64)
    data.shape = raw.epoch_shape
    data *= raw.cals
    return data
