Skip to content

Commit

Permalink
Correct Lee dataset loading (#298)
Browse files Browse the repository at this point in the history
* do not add explicitely events

* Lee2019 event assignation
  • Loading branch information
Sylvain Chevallier authored Jun 9, 2022
1 parent 0b95569 commit fe38df8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions docs/source/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~
Expand Down
10 changes: 0 additions & 10 deletions moabb/datasets/Lee2019.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe38df8

Please sign in to comment.