Skip to content

Commit d644a87

Browse files
[FIX] Solve annotation issue (#696)
* Always redefining the annotation. * [EHN] fixing --------- Signed-off-by: Bru <a.bruno@aluno.ufabc.edu.br>
1 parent bea3ec0 commit d644a87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/whats_new.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ Bugs
3232
- Improving the CI (:gh:`686` by `Bruno Aristimunha`_)
3333
- Making the download test work again (:gh:`693` by `Bruno Aristimunha`_)
3434
- Fix the EpochSelectChannel that caused incorrect channel selection in `example <examples/plot_Hinss2021_classification.py>` (:gh:`685` by `AFF`)
35-
- Fixing the logger on the Stieger2021 and Wang2016 dataset (:gh:`693` by `Bruno Aristimunha`_)
35+
- Fixing the logger on the Stieger2021 and Wang2016 dataset (:gh:`693` by `Bruno Aristimunha`_
36+
- Fixing bug with braindecode and moabb datasets EPFLP300 (:gh:`696` by `Bruno Aristimunha`_)
3637
- Change the way of creating the path to the folder (by `Sebastien Velut`_)
3738

3839
API changes

moabb/datasets/preprocessing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def __init__(self, event_id, interval: Tuple[float, float]):
6666
def transform(self, raw, y=None):
6767
duration = self.interval[1] - self.interval[0]
6868
offset = int(self.interval[0] * raw.info["sfreq"])
69-
if raw.annotations:
70-
return raw
69+
7170
stim_channels = mne.utils._get_stim_channel(None, raw.info, raise_error=False)
7271
if len(stim_channels) == 0:
7372
log.warning(

0 commit comments

Comments
 (0)