def _construct_signal_from_epochs(epochs):
    """Reconstruct pseudo continuous signal from epochs."""
    start = (np.min(epochs.events[:, 0]) +
             int(epochs.tmin * epochs.info['sfreq']))
    stop = (np.max(epochs.events[:, 0]) +
            int(epochs.tmax * epochs.info['sfreq']) + 1)

    n_samples = start - stop
    epochs_data = epochs.get_data()
    n_epochs, n_channels, n_times = epochs_data.shape
    events_pos = epochs.events[:, 0] - epochs.events[0, 0]

    data = np.zeros((n_channels, n_samples))
    for idx in range(n_epochs):
        onset = events_pos[idx]
        offset = onset + n_times
        data[:, onset:offset] = epochs_data[idx]

    return data
dataset/ETHPy150Open mne-tools/mne-python/mne/preprocessing/xdawn.py/_construct_signal_from_epochs/swapped operands of `-`