Repository navigation
Add Leelakittisin2025, PerezBlanco2026 and Vagaja2023 archive datasets - #1199
Merged
bruAristimunha merged 21 commits intoOct 4, 2026
Merged
Conversation
…>77.7%) Per-file coverage unchanged: perezblanco2026 71%, sitstand2026 83%, vagaja2023 79%. - Drop the reader call-shape asserts (preload/verbose) from the stale subject-31 BrainVision header test; the repaired-header contract remains. - All other tests sit on the retention bar (first/last trial, SI units, bad-channel retention, missing/duplicate sessions, transport manifests, documented data bugs); no further coverage-neutral deletions were justified.
- Drop the hand-written Vagaja2023 'Dataset summary' table (the metaclass renders it from summary_imagery.csv; it appeared twice); shorten docstrings (method Parameters/Returns boilerplate, trigger-code listing). - Compact channel lists; Vagaja2023 subject->group map built from two lists; PerezBlanco2026 drops the identity _TARGET_TO_CODE map; empty-dict guards around MNE rename/set_channel_types removed; SitStand2026 session dict comprehension. - Tests: the three PR test files merged into test_archive_c_regression.py. Behaviour: loader fingerprint (Perez _build_run, SitStand _build_raw with and without stored names, Vagaja _load_run EEG-only/all-modalities) and METADATA/summary/DOI fingerprint identical.
- resolve_montage_name (moabb.datasets._montage, re-exported by utils): MNE 1.13 renamed standard_1005/1020 (and the other standard_* templates) to colin27_*, warns on the old names and 1.14 removes them. Returns the spelling the installed MNE knows; electrode files are byte-identical (dig positions checked equal on MNE 1.10.2, 1.12.1 and 1.13.2). Every make_standard_montage/set_montage call in moabb now goes through it; METADATA montage labels are descriptive and unchanged. - download_and_extract_zip: download once, extract unless a marker exists, optional warn + forced re-download of a corrupted archive. - read_raw_brainvision_repaired: repair stale DataFile/MarkerFile references in a temporary header (strict mode raises on missing entries/siblings). - rename_stimulus_codes, edge_boundary_annotations; SetRawAnnotations keeps 'EDGE boundary' markers. - moabb.datasets._openneuro_mirror moved here verbatim (byte-identical copies in NeuroTechX#1186 and NeuroTechX#1189), with dataset-agnostic tests.
# Conflicts: # docs/source/whats_new.rst
…tage names Merges NeuroTechX#1200 (datasets/shared-loader-helpers): local zip/BrainVision/EDGE-boundary code replaced by moabb.datasets.utils helpers, montage calls spelled with the MNE 1.13 colin27_* names via resolve_montage_name, new classes without a public NEMAR mirror listed in NEMAR_ID_EXEMPT. Behaviour fingerprints unchanged.
MNE 1.13 renamed the standard_* templates to colin27_* (identical .elc files). With the floor at 1.13 the resolve_montage_name shim and the _montage module are not needed: every call site spells the new name.
- download_and_extract_zip -> extend download_and_extract_subject_zip with keyword-only fname and redownload_corrupted (defaults keep the 10 develop callers unchanged) - read_raw_brainvision_repaired -> mne.io.read_raw_brainvision(overrides=) at the call sites (MNE >= 1.13) - edge_boundary_annotations -> mne.Annotations(onsets, 0.0, 'EDGE boundary') - drop_native_stim / relabel_annotations / write_dataset_description -> drop_channels / annotations.rename / mne_bids.make_dataset_description - tests: no nested functions, Mock data_dl
# Conflicts: # docs/source/whats_new.rst
…overrides - download_and_extract_zip -> develop's download_and_extract_subject_zip behind the usual extracted-folder check (PerezBlanco2026, Vagaja2023) - read_raw_brainvision_repaired(strict=True) -> mne.io.read_raw_brainvision(overrides=) - SitStand2026: nested resolve_mat_paths hoisted to module-level _resolve_mat_paths - colin27_* montage names spelled directly (mne>=1.13) - tests: Mock / autospec wraps instead of monkeypatched lambdas
… audit) Zenodo readme.pdf (fetched to the audit cache as readme.txt): 60 EEG + 2 EOG at 1200 Hz, 6 EMG at 2000 Hz, eeg in uV, trigger codes 21/32; demographics table (after excluding S05) 15 M / 7 F, 18-30 y, 19 right / 2 left / 1 both, 6 with prior EEG experience - the readme text instead says 22-28 y and fifteen males (documented as a conflict); MI index table gives 2 rounds x 10 trials per task per session. Zenodo creator 'Leelakittisin, Benjakarn' vs readme first author 'Benjakarn Uengsawapak' noted; class name left for a naming decision. Evidence: ~/Projects/moabb/.paper-audit/reports/mi-archive-c/SitStand2026/report.md
…(paper audit) Paper describes an overt wrist motor-execution task (no imagery condition): detected_paradigm/task_type set to motor_execution and Tags type to Motor Execution, paradigm='imagery' kept only for MotorImagery compatibility (as Schirrmeister2017). Adds age mean 38.50 / SD 19.87, the recommended exclusion of subject 31, the Guadalajara recording site vs Monterrey sidecar address, and the BIDS 'PD' vs Figshare CC BY 4.0 licence note. Evidence: ~/Projects/moabb/.paper-audit/reports/mi-archive-c/PerezBlanco2026/report.md
…dit) Zenodo description: 10 males (25.4 +/- 7.4 y) and 16 females (23 +/- 3.2 y), all right-handed, three with previous BCI experience; session structure (4 min resting state, 5 min embodiment, 15 min MI training, 90-120 min). Evidence: ~/Projects/moabb/.paper-audit/reports/mi-archive-c/Vagaja2023/report.md
No source names the dataset "SitStand": that is the GitHub repository slug (`eeg_sit_stand`). The Zenodo record 20348444 is titled "EEG-Based Dataset Explicitly Targets the Transitions between Sitting and Standing for Exploring Neural Activation Patterns in Motor Imagery and Execution", links no paper, and lists creator #1 "Benjakarn Leelakittisin" (year 2025); the readme byline spells the same first author "Benjakarn Uengsawapak", which is recorded as an alias in the docstring. Rule 2 (no paper: record creators and record year) gives Leelakittisin2025. Renamed class, module, code, registry, api.rst, whats_new, summary CSV, tests and the NEMAR exemption list; no deprecated alias (the name was never released).
…aders (no behaviour change) Remove the unused 'import logging' / module-level 'log' logger in vagaja2023.py; it was never referenced.
bruAristimunha
marked this pull request as ready for review
October 4, 2026 17:41
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.
Scope
Ports Leelakittisin2025 (was SitStand2026), PerezBlanco2026, and Vagaja2023 onto fresh
origin/develop(18e7d4c), with registration, derived acquisition counts, API/catalog documentation, DOI cache and synthetic regressions. The corresponding loaders are byte-identical betweencodex/mi58-corrected-20260801andbruaristimunha-fork/codex/mi-dataset-expansionbefore this port.Scientific exclusions / draft blockers
Vasilyev2021 deliberately deferred. The existing custom BCI2000 reader assumes SourceChGain is in microvolts, silently defaults missing/malformed gain and offset to identity calibration, truncates incomplete sample blocks, and labels an unknown final auxiliary/reference channel as EEG. The live Figshare v2 description explains states and run metadata but does not resolve physical calibration. Synthetic numbers cannot establish the physical units of released files. No dataset downloads or paper reruns were performed.
Real-file/Voyager validation remains pending for all three included loaders: released class counts, exact trial endpoints, unit agreement with source decoding, archive/header exceptions, and original bad-channel inventory. The synthetic tests verify code contracts, not scientific calibration of the released recordings.
Transport / NEMAR status
Original transports only:
10.5281/zenodo.20348444.10.5281/zenodo.8086086, GROUPS.zip.No genuine matching NEMAR/OpenNeuro mirror ID was established by repository-description/search inspection. No fake IDs, no new exemptions, no placeholder pending deposit and no rehost/publication. Removed the source's invalid
nemar_id = "EXEMPT"on SitStand. Missing mirror IDs remain explicit merge blockers and the three NEMAR-ID checks intentionally fail. The inspected similarly named nm000107 is an unrelated wrist sEMG dataset, not this EEG/EMG deposit.Local verification (no real-data downloads)
Explicit worktree
PYTHONPATHwith verifiedmoabb.__file__, isolated_MNE_FAKE_HOME_DIR, existingMNE_DATA,MOABB_DOWNLOAD_PROVIDER=auto:test_epochs, licence-access test, NEMAR-ID inventory, and initially the selected-session test; the latter was inspected as FakeDataset-only and separately 1 passed.git diff --check: passed.Synthetic cases cover first/last events and epoch retention, known SI values, trigger non-scaling, preserved bad channels, invalid subjects, duplicate/missing sessions, nested archives, forced refresh and propagation of path/update/verbosity flags. Transport is mocked; no anonymous mirror-download claim.
Draft; no merge requested until scientific and mirror gates are resolved.
Simplification (2026-09-29, head
13bf4d6e5)Depends on #1200. Merge #1200 (
mne>=1.13, shared download/marker helpers, OpenNeuro mirror mixin) first. This branch merges it (git merge --no-ff, no rebase).Pass 4 (ponytail): reuse existing code, no nested functions (head
000b62b40)058ae05e6, which now requiresmne>=1.13and drops the pass-3 helpers that re-implemented existing code.download_and_extract_subject_zip, behind the same extracted-folder check its ten develop callers use. Archives now extract intoMNE-<code>-data/, not next to the cached archive. PerezBlanco2026 still finds EDFs already extracted under the oldfiles/location without querying Figshare.mne.io.read_raw_brainvision(..., overrides={"data_fname": ..., "marker_fname": ...}), which replacesread_raw_brainvision_repaired(strict=True). MNE itself raisesFileNotFoundErroron a missing.eeg/.vmrk. It still usesrename_stimulus_codes.resolve_mat_pathsis now the module-level_resolve_mat_paths(extract_dir, subject). Its own zip handling is unchanged: its test countsZipFile.extractallcalls, so it is not switched tosafe_extract_zip.colin27_1005/colin27_1020directly.lambdawithMock. The extract-once test counts calls throughpatch.object(ZipFile, "extractall", autospec=True, wraps=...).moabb/datasets/*.py901 → 900;moabb/tests/*.py(net) 194 → 199 (theoverridesand_load_runcall assertions).data_paththrough fake archives, with the extraction root dropped.test_loader_utils.py,test_preprocessing.py,test_datasets.py,test_metadata.py,test_doi_validation.py) had 2533 passed, 0 failed. ruff 0.15.20 andgit diff --checkare clean.Pass 3: shared helpers, NEMAR skip, new montage names (head
613d3df32)download_and_extract_zip._read_brainvisionandS 7loop are replaced byread_raw_brainvision_repaired(..., strict=True)andrename_stimulus_codes. The repair test moved to refactor(datasets): require mne>=1.13, spell colin27 montages, share loader code #1200.resolve_montage_name.NEMAR_ID_EXEMPT(# no public NEMAR mirror yet; tracked in #1199):PerezBlanco2026,SitStand2026,Vagaja2023. No ids were invented,NEMAR_ID_PENDINGis untouched, andtest_all_datasets_have_valid_nemar_idpasses locally.moabb/datasets/*.py945 → 901 (-5%);moabb/tests/*.py(net) 204 → 194 (-5%; includes the NEMAR-exempt lines).test_loader_utils.py): perezblanco2026 71→70, sitstand2026 88→88, vagaja2023 83→98. No touched file dropped by more than 2 pp.pytest <PR tests> test_loader_utils.py test_preprocessing.py test_datasets.py test_metadata.py test_doi_validation.py --cov=moabb/datasets(isolated MNE home, emptyMNE_DATA, no downloads;test_dataset_acceptandTestData::test_epochsdeselected): 0 failed. Also ruff 0.15.20 andgit diff --check.moabb/datasets/*.pymoabb/tests/*.py(net)PR tests collected (pass 2): 11 → 11. Coverage of touched dataset files (pass-1 before → now, offline suite): perezblanco2026 71→71, sitstand2026 83→88, vagaja2023 79→83.
Pass 2 — loaders and tests
_TARGET_TO_CODEremoved; empty-dict guards around MNE rename/set_channel_types removedtest_archive_c_regression.py_read_brainvisionstale subject-31 header repair (cross-PR dedup with Thapa2025 Add large-recording motor datasets: NeBULA2025, MIND, MOVING and Thapa #1195 is a follow-up),raw.ch_names[:60] == EEG_CHANNELScheck.pytest <PR tests> test_datasets.py test_metadata.py test_doi_validation.py --cov=moabb/datasets(isolated MNE home, no downloads;test_dataset_accept/TestData::test_epochsdeselected); behaviour fingerprint before/after on fake source data (per-run data hash, channels/types, sfreq, annotations, events, montage) and class fingerprint (subjects, sessions, event_id, interval, code, DOI, METADATA hash, summary-CSV row, docstring DOIs) identical exceptDataset summaryrendered once instead of twice; ruff 0.15.20,git diff --check.Test_Datasets::test_all_datasets_have_valid_nemar_id[<new classes>]fails (nonemar_id, not inNEMAR_ID_PENDING) — NEMAR-ID decision still open.Pass 1 — test audit
preload/verbosecall-shape asserts inside the stale subject-31 header test's fake reader were removed (−2 LOC). No whole test was deletable: each maps to the retention bar (first/last events + SI units; µV→V on EEG/EOG only with the trigger row not rescaled; marker→class mapping + bads; per-classdata_pathguards; transport manifest + missing/duplicate sessions; documented nested-Zenodo extract-once bug; one transport mock per download contract; stale-header data bug).Vagaja2023._read_brainvisionandThapa2025._read_brainvision(Add large-recording motor datasets: NeBULA2025, MIND, MOVING and Thapa #1195) are near-identical stale-header repair helpers — a shared helper would deduplicate both. Proof: offlinepytest <PR tests> moabb/tests/test_datasets.py moabb/tests/test_metadata.py moabb/tests/test_doi_validation.py --cov=moabb/datasets --cov-report=term-missing -p no:cacheprovider(isolated MNE home, no downloads;test_dataset_accept/TestData::test_epochsdeselected). Pre-existing on this branch, untouched:Test_Datasets::test_all_datasets_have_valid_nemar_id[<new classes>]fails (nonemar_id, not inNEMAR_ID_PENDING).