Repository navigation
Description
Problem: PhysioNet eegmmidb downloads stall / timeout, blocking PhysionetMI
In a large MOABB rerun (MI LHRH/RHF/ALL, 109 subjects x 14 runs), PhysionetMI downloads from https://physionet.org/files/eegmmidb/1.0.0/ are the long pole:
- throughput 10-40 kB/s per file (2.6 MB EDFs taking minutes each)
- frequent
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='physionet.org', port=443): Read timed outat 50-90% of file - pooch (MNE
data_dl) does not resume, so each timeout restarts the file from zero - 109 subjects x ~8 runs needed for MI tasks = days at this rate; 6+ warm/ML Jobs died on this in our campaign
Log sample (Voyager, MOABB 1.8.0dev0, PhysionetMI via data_dl):
Downloading data from 'https://physionet.org/files/eegmmidb/1.0.0/S065/S065R08.edf' ...
33%|...| 868k/2.60M [00:41<01:56, 14.9kB/s]
...
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='physionet.org', port=443): Read timed out.
Related: #1084 (nemar-py re-host). PhysionetMI.nemar_id = "on004362" publishes no sourcedata manifest, so NEMAR-first (MOABB_DOWNLOAD_PROVIDER=auto) falls back to upstream for this dataset.
Fast lane that works: s3://physionet-open + s5cmd
The AWS Open Data mirror is byte-identical EDFs in the same layout MNE expects:
s3://physionet-open/eegmmidb/1.0.0/S001/S001R01.edf(+.event) — 3059 objects total- destination
MNE-eegbci-data/files/eegmmidb/1.0.0/S001/S001R01.edf— exact match, pooch then sees files as complete and skips re-download
One Job with 256 workers:
s5cmd --no-sign-request sync --size-only \
"s3://physionet-open/eegmmidb/1.0.0/*" \
$MNE_DATA/MNE-eegbci-data/files/eegmmidb/1.0.0/This saturated the link where physionet.org gave 10-40 kB/s. Note: OpenNeuro ds004362 is BIDS .set, NOT drop-in for the current loader — physionet-open is the one to use.
Proposal
- Document the S3 fast lane for
PhysionetMI(and other physionet-hosted sets) in docs + dataset docstring - Optionally:
PhysionetMI(anddata_dlgenerally) triess3://physionet-openmirror first / falls back tohttps://physionet.org, or aMOABB_S3_MIRROR=1env flag that pre-seeds via s5cmd/aws-cli when available - Long term: NEMAR sourcedata for
on004362(see Update moabb to use nemar-py as we finish to re-host the datasets #1084) would make this moot for provider=auto/nemar
Environment
- MOABB 1.8.0dev0 (
f88fb85), mne 1.13.2, sklearn 1.9.1, pyriemann 0.12 - Voyager Kubernetes, group Ceph,
s5cmd v2.2.2,aws-cli/2.37.9 - Campaign: MOABB paper resubmission rerun (MI LHRH/RHF/ALL + SSVEP, EA normalization)
Happy to PR the docs + optional mirror flag if maintainers agree on approach.
Activity
Fetch PhysioNet files from the AWS Open Data mirror first (NeuroTechX…
Fetch PhysioNet files from the AWS Open Data mirror first (#1245) (#1257
Review follow-ups for the merged w42 PRs (#1257-#1270) (#1271)