Repository navigation
Fix incorrect interval in annotations - #607
Merged
bruAristimunha merged 2 commits intoMay 29, 2024
Merged
bruAristimunha merged 2 commits into
bruAristimunha merged 2 commits into
Conversation
Collaborator
Author
|
Datasets affected since version 1.0: |
Collaborator
|
We need to create more tests for this situation, but for a new PR! |
PierreGtch
added a commit
to PierreGtch/moabb
that referenced
this pull request
May 30, 2024
Collaborator
Author
|
A bit more context: In 1.0.0, for all the datasets where The durations in the annotations were correct. This did not affect the creation of epochs when using MOABB’s paradigms. |
Member
|
Ok, that why there was no regression in MOABB but it was the case for Braindecode. Good catch. |
PierreGtch
added a commit
to PierreGtch/moabb
that referenced
this pull request
May 30, 2024
This was referenced May 30, 2024
bruAristimunha
pushed a commit
that referenced
this pull request
May 30, 2024
bruAristimunha
pushed a commit
that referenced
this pull request
May 30, 2024
bruAristimunha
added a commit
to braindecode/braindecode
that referenced
this pull request
Nov 30, 2026
…hifted (#1849) * FIX MOABBDataset: add interval[0] once to trials that MOABB already shifted Since NeuroTechX/moabb#607, SetRawAnnotations, a step of MOABB's default process pipeline, puts each trial at event + interval[0]. Without a stim channel, braindecode rebuilt the trials from these annotations and added interval[0] again; raws read from MOABB's raw cache have no stim channel and took that path too. Add the onset only when the trials come from the stim channel or from a pipeline without SetRawAnnotations. * DOC whats_new: add the pull request number for MOABBDataset --------- Co-authored-by: bruAristimunha <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The annotations added by
SetRawAnnotationsdo not take into account the case when a dataset’s interval does not start at 0. This PR fixes it.