Repository navigation
Fix Hinss2021 sampling rate and trial alignment (#663) - #1270
Merged
bruAristimunha merged 2 commits intoOct 14, 2026
Merged
bruAristimunha merged 2 commits into
bruAristimunha merged 2 commits into
Conversation
The released EEGLAB files hold 2 s epochs at 250 Hz, but the loader built the concatenated recording at a hard-coded 500 Hz, halving every time span and doubling every frequency: each '2 s' trial covered two released epochs. Each event also sat one sample after its epoch's start, so the last trial of every session ran past the end and was dropped by MOABB and braindecode. Read the sampling rate from the files, pad one leading sample so events mark the first sample of each epoch, and use interval [0, 2 - 1/250] so a trial is exactly one released epoch. Synthetic regression test included.
bruAristimunha
force-pushed
the
fix/braindecode-loader-663
branch
from
October 14, 2026 14:14
1fc076a to
110288e
Compare
bruAristimunha
added a commit
that referenced
this pull request
Oct 14, 2026
* Review follow-ups for the merged w42 PRs (#1257-#1270) - benchmark(): pass datasets=None without include/exclude so the default run filters quietly (#862); list reasons in 'No datasets left' - link check: scheduled run stays strict on 5xx - PhysioNet S3 mirror: skip after the first failure in the process (#1245); test that data_dl routes through it - metadata-aware cv_class: reject an ignored groups argument; document the CrossSession one-subject view (#1104) - Zhou2020: a file that does not match the channel layout raises instead of being skipped (#1120) - Rozado2015: accept common microvolt spellings (#1070) - Lioi2020_XP2: read-only subject mapping; clearer missing-key error (#1098) - process() Notes: saving finished subjects is best effort with n_jobs > 1 (#419) - Hinss2021 test: no module-level MNE log level * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.
Fix Hinss2021 sampling rate and trial alignment (#663)
The released EEGLAB files hold 2 s epochs at 250 Hz, but the loader built
the concatenated recording at a hard-coded 500 Hz, halving every time span
and doubling every frequency: each '2 s' trial covered two released epochs.
Each event also sat one sample after its epoch's start, so the last trial of
every session ran past the end and was dropped by MOABB and braindecode.
Read the sampling rate from the files, pad one leading sample so events mark
the first sample of each epoch, and use interval [0, 2 - 1/250] so a trial
is exactly one released epoch. Synthetic regression test included.
Closes #663