def _check_overlapp(epochs):
    """check if events are overlapped."""
    isi = np.diff(epochs.events[:, 0])
    window = int((epochs.tmax - epochs.tmin) * epochs.info['sfreq'])
    # Events are overlapped if the minimal inter-stimulus interval is smaller
    # than the time window.
    return isi.min() < window
dataset/ETHPy150Open mne-tools/mne-python/mne/preprocessing/xdawn.py/_check_overlapp/original