Hello there!
Iām having a problem with .set files in a dataset found in the OpenNeuro repository.
Now I am testing the ds003774 dataset, and itās not getting the correct BIDSPath.
I guess itās getting the session variable into the run variable; again, itās a guess.
The code is the following:
This seems to work, although Iām getting quite a number of warnings:
Reading events from /tmp/ds003774/sub-001/ses-01/eeg/sub-001_ses-01_task-MusicListening_run-1_events.tsv.
Reading channel info from /tmp/ds003774/sub-001/ses-01/eeg/sub-001_ses-01_task-MusicListening_run-1_channels.tsv.
Reading in coordinate system frame Other: None.
<RawEEGLAB | sub-001_ses-01_task-MusicListening_run-1_eeg.set, 129 x 34009 (136.0 s), ~33.6 MB, data loaded>
/Users/hoechenberger/Development/mne-bids/mne_bids/read.py:59: RuntimeWarning: Data will be preloaded. preload=False or a string preload is not supported when the data is stored in the .set file
raw = reader[ext](raw_path, **kwargs)
/Users/hoechenberger/Development/mne-bids/mne_bids/read.py:59: RuntimeWarning: Omitted 106 annotation(s) that were outside data range.
raw = reader[ext](raw_path, **kwargs)
/Users/hoechenberger/Development/mne-bids/mne_bids/read.py:59: RuntimeWarning: Limited 2 annotation(s) that were expanding outside the data range.
raw = reader[ext](raw_path, **kwargs)
/Users/hoechenberger/Development/mne-bids/mne_bids/read.py:59: RuntimeWarning: The data contains āboundaryā events, indicating data discontinuities. Be cautious of filtering and epoching around these events.
raw = reader[ext](raw_path, **kwargs)
/Users/hoechenberger/Development/mne-bids/mne_bids/dig.py:502: RuntimeWarning: EEG Coordinate frame is not accepted BIDS keyword. The allowed keywords are: [āACPCā, āPixelsā, āOtherā]
warn(āEEG Coordinate frame is not accepted "
/Users/hoechenberger/Development/mne-bids/mne_bids/read.py:754: RuntimeWarning: participants.tsv file not found for /tmp/ds003774/sub-001/ses-01/eeg/sub-001_ses-01_task-MusicListening_run-1_eeg.set
warn(f"participants.tsv file not found for {raw_path}ā)
@sappelhoff this really doesnāt look great, eh??
okay, the EEGLAB and EEGLAB-HJ coordsystems werenāt even the issue. (Iāll still open an issue on mne-bids that we try to handle those, because new versions of EEGLAB-BIDS write these keywords to coordsystem.json).
Data will be preloaded. preload=False or a string preload is not supported when the data is stored in the .set file
raw = reader[ext](raw_path, **kwargs)
This issue comes from MNE-Python ⦠we can address it in mne-bids by setting preload for .set to True always.
The boundary events warning is fair
the warning about omitted and/or limited annotations is worrying, thatās something Iād be grateful if you, @AngelicaRibeiro, could investigate further and alert us if itās a problem with mne-bids or mne-python
Iāll open a couple of issues on mne-bids. But for more than that I donāt have time right now