Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Lee dataset loading #298

Merged
merged 2 commits into from Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/whats_new.rst
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
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