diff --git a/docs/source/whats_new.rst b/docs/source/whats_new.rst index ddaad1901..9846a9611 100644 --- a/docs/source/whats_new.rst +++ b/docs/source/whats_new.rst @@ -25,6 +25,7 @@ Bugs - Correct CI error due to black (:gh:`292` by `Sylvain Chevallier`_) - Preload Schirrmeister2017 raw files (:gh:`290` by `Pierre Guetschel`_) +- Incorrect event assignation for Lee2019 in MNE >= 1.0.0 (:gh:`298` by `Sylvain Chevallier`_) API changes ~~~~~~~~~~~ diff --git a/moabb/datasets/Lee2019.py b/moabb/datasets/Lee2019.py index 625a5006f..1c7c4b857 100644 --- a/moabb/datasets/Lee2019.py +++ b/moabb/datasets/Lee2019.py @@ -150,16 +150,6 @@ def _get_single_run(self, data): stim_chan[:, None], ["STI 014"], "stim", sfreq, verbose="WARNING" ) - # Add events - event_arr = [ - event_times_in_samples, - [0] * len(event_times_in_samples), - event_id, - ] - raw.info["events"] = [ - dict(list=np.array(event_arr).T, channels=None), - ] - # Add EMG and stim channels raw = raw.add_channels([emg_raw, stim_raw]) return raw