Repository navigation
Description
EEGPrep checks each EEGLAB function on its own, in one issue, for both the window and the numbers (Arno, November 26, 2026). This issue is pop_mneio (formerly pop_biosig), File menu: Import data > From Biosemi BDF file, From EDF/EDF+/GDF files, Using the MNE-IO interface. Arno, November 26, 2026: "I want a pop_eegio and pop_mneio function instead. No pop_fileio and pop_biosig functions." The rename is #765. It stays open until the window and the numbers are both acceptably close to EEGLAB's, even when a pull request is merged or closed.
- Window: needs work. The menus say MNE-IO and the header says how the import works (762, 712, merged). The window is the old one again: the change of issue 701 was reverted (718, merged) and comes back as its own pull request.
- Numbers: needs work. BDF: same data, rate, labels and 41 events. EDF: same data and labels (749, merged). Events with a channel list as in EEGLAB (748, merged). The EEGLAB bug on test.edf is fixed (sccn/eeglab 991, merged).
- What remains: The window of issue 701 as a pull request, without the two checkboxes Arno dropped (overflow detection, force continuous data), in EEGLAB too. The rename to pop_mneio (765). EDF written by EEGLAB with a Status channel (F4), EDF+ annotation latencies (F6). EEGLAB ignores the channel list (not fixed).
- Fixes (sub-issues): pop_biosig window: same controls as EEGLAB without mexSLOAD and memory mapping; compare imported files #701, pop_biosig menu: say which Python reader EEGPrep uses (MNE-Python, not the BIOSIG toolbox) #703, pop_biosig and pop_fileio: EDF channel labels keep the prefix EEG (EEGLAB removes it) #746, pop_biosig: a channel list that leaves out Status loses the BDF events #747, biosig2eeglab takes the last EEG channel of an EDF file for an event channel eeglab#989
- Menu issue: EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696. The progress of every function is in the table of https://github.com/adelorme-assistant/project_eegprep#progress-of-the-port
Graphics
The Help text before and after (issue 703): it now says that MNE-Python reads the file.
Earlier captures
The import window (issue 701): EEGLAB, EEGPrep before, EEGPrep after.
Import data > Using the BIOSIG interface (issue 703): the window is the same before and after, only the Help text changes.
Captured on jamming under a virtual screen (EEGLAB with getframe, EEGPrep with the Qt widget grab), and on the Mac where said.
The window: what differs from EEGLAB
- EEGPrep shows EEGLAB's nine controls without the alternative BIOSIG method (
mexSLOAD) and without memory mapping (rule 12). - Enable overflow detection and Force continuous data change nothing for EDF and BDF files. Arno, November 26: both checkboxes go, in EEGLAB too (the script options stay).
- The window change of issue 701 was reverted with pull request 718 and comes back as its own pull request.
- The menu is called MNE-IO (pull request 762, merged, rule 22), and the header says how the import works and that MNE-Python must be installed (pull request 712, merged).
The numbers: same file in both programs
test.bdf: the same data (largest difference 1.1e-13), sampling rate, labels and 41 events (case N12 of the File menu report).test.edf: the same data (largest difference 1.3e-6 microvolt). EEGPrep kept the prefixEEGin the labels (finding F5). Fixed by issue 746 (merged as pull request 749): the 15 common labels equal EEGLAB's.test.edf: EEGLAB takes the last channel (EEG O2) for an event channel, makes 55 events and removes it (finding F3). This is an EEGLAB bug, fixed in [sigproc] Do not take an EDF channel labeled EEG for an event channel eeglab#991 (merged): after it, EEGLAB returns 16 channels and no event, as EEGPrep does.- Import uncalibrated data gives EEGLAB's values exactly on both files (issue 701).
test.bdfwith the channel list 1 to 3: EEGPrep returned no event. Fixed by issue 747 (merged as pull request 748): it returns the 3 channels and EEGLAB's 41 events.- EEGLAB itself does not apply a channel list: it returns all 16 channels without labels, and stops with an error on
test.edf. Not copied, not fixed. - An EDF written by EEGLAB (events in a 33rd
Statuschannel) is read as 33 channels and no event (finding F4). Not started. - EDF+ annotations: EEGLAB's latencies are one sample lower than EEGPrep's (finding F6). Cause not looked up.
Files
- Before and after report (Word and PDF): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/pr-701
- Before and after report (Word and PDF): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/pr-703
- File menu report with Arno's comments: https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/file-menu-2026-11-26
- Rules for the window work: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md



Activity
claude commentedon Nov 27, 2026
🤖 Plan:
Research
The window items wait on Arno and are already in flight. The numeric items all come from one design:
pop_biosigpasses the file topop_fileio(MNE-Python), then handles only BioSemiStatuschannels itself. So EDF labels, EDF events and EDF+ annotation latencies come from MNE plus the generic MNE→EEG conversion, not from BIOSIG's rules.Relevant code
src/eegprep/functions/popfunc/pop_biosig.py#L106-L125- delegates to pop_fileio; BDF-only Status handlingsrc/eegprep/functions/popfunc/pop_biosig.py#L200-L224- Status gated on loaded label and_is_biosemisrc/eegprep/functions/miscfunc/_eeg_mne.py#L204-L206- annotation onset → latency (onset*srate + 1)Proposed split (one sub-issue and PR each)
EEG. Strip the EDF signal-type prefix inpop_biosigafterpop_fileio, matching EEGLAB's label cleanup. Needs the exact EEGLAB rule (which prefixes, only when followed by a space) read frompop_biosig.m; the vendoredsrc/eegprep/eeglab/checkout is empty in this runner, so it was not checked here. Small, testable ontest.edf.onset*srate + 1, which is the correct 1-based latency; EEGLAB being one sample lower suggests BIOSIG'sEVENT.POSis used without the 1-based shift. One MATLAB run printingEEG.event(1).latencynext to the raw onset settles which side is right. If EEGPrep changes, do it inpop_biosig, not_eeg_mne.py, which every MNE-based importer shares._import_bdf_status_channelreturns early whenchannelsexcludesStatus, so no events. EEGLAB reads events from the header regardless of channel selection. Fix: decode Status from the file (_blockrange_status_eventsalready reads it viaopenbdf) whenever the file has aStatussignal, not only when it was loaded.Statuschannel._is_biosemirejects it because the file is EDF. Decision needed: decodeStatusin an EDF like BDF (as EEGLAB does)? If yes, reuse the same decoder with 16-bit words.test.edf(O2 taken as event channel). Do not copy; record the divergence indocs/source/and in the parity test.Open questions: (a) item 2: fix on our side or EEGLAB's? (b) item 4: yes or no? (c) items 1 to 4 as separate PRs (preferred, each under 100 lines with one regression test) or one?
arnodelorme commentedon Nov 27, 2026
Arno's answer (email of November 26, 2026), on the two checkboxes "Enable overflow detection" and "Force continuous data": "Yes, this should be dropped in EEGLAB as well."
pop_biosig.m. One sub-issue and one small pull request on each side, with the captures before and after.'overflow'and'blockepoch'keep working, so that no script breaks. Only the two checkboxes go.What the two checkboxes do in EEGLAB's code (read, not run)
'blockepoch','off'(pop_biosig.mline 217). Unchecked, the window passes'blockepoch','off'(line 187). Both give the same call.OVERFLOWDETECTION:OFFis no longer sent to BIOSIG (pop_biosig.mlines 334 to 336), and BIOSIG then replaces the samples at the limits of the recording range with NaN (sopen.mline 188,sread.mlines 1523 to 1540 of Biosig 3.8.4). It changes nothing ontest.edfandtest.bdfonly when these files hold no saturated sample, which is what the test showed. MNE-Python has no such switch, so nothing is lost in EEGPrep.— orchestrator
[-]pop_biosig (File > Import data > BDF, EDF and BIOSIG interface): graphical and numerical parity with EEGLAB[/-][+]pop_mneio, formerly pop_biosig (File > Import data > BDF, EDF and MNE-IO interface): graphical and numerical parity with EEGLAB[/+]arnodelorme commentedon Nov 27, 2026
Renamed after Arno's answer of November 26, 2026: "I want a pop_eegio and pop_mneio function instead. No pop_fileio and pop_biosig functions." The rename itself, with no alias for the old name, is #765. The summary above still uses the old name until the eegprep worker brings it up to date.
— orchestrator
Limit the MNE-IO menu description to EDF, BDF, and GDF
pop_biosig help: list only the EDF, BDF and GDF formats the menu opens (
arnodelorme commentedon Nov 29, 2026
🤖 pop_mneio: place annotations relative to the first imported sample. #838
— EEGPrep worker (Codex)
arnodelorme commentedon Nov 29, 2026
🤖 pop_mneio: import recordings with both EEG and EOG without changing trigger units. #839
— EEGPrep worker (Codex)
arnodelorme commentedon Nov 29, 2026
🤖 pop_mneio: preserve electrode coordinates from the MNE montage. #840
— EEGPrep worker (Codex)
arnodelorme commentedon Nov 29, 2026
🤖 pop_biosig: track MATLAB ignoring a three-channel request on the EEGLAB test files. #854
— EEGPrep worker (Codex)