You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_biosig window: same controls as EEGLAB without mexSLOAD and memory mapping; compare imported files #701
Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.
Window: 3.3 Import data > From Biosemi BDF file (BIOSIG toolbox) (findings F3 to F6, F14, F24, F26)
What to do: Give the EEGPrep dialog the controls of EEGLAB's pop_biosig dialog in the same order and wording, except "Import using alternative BIOSIG method (mexSLOAD)" and "Import as memory mapped file", which are left out and explained in the function header. Then import the same BDF and EDF files in both programs and compare the datasets side by side (data, sampling rate, channel labels, events).
Done when: a pull request on a branch agent/issue-<n> of develop, with captures before and after the change next to EEGLAB's, in a Word file and the same content as a PDF (rule 14), linked from the pull request. Arno merges.
Yes, here MATLAB and Python should coincide. However, some Python menus are not necessary. For example, the max s load menu is not necessary. Similarly, the import memory map file is not necessary, as this is not implemented in Python. However, the other checkboxes are needed. Also, the two files should be compared side by side for import to make sure that the function works.
The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.
Scope check: not opening a PR. This needs reader work for three options that have no Python implementation yet, so it goes past a small GUI fix. The required deliverables (MATLAB captures on jamming, Word/PDF report, a MATLAB-side BDF/EDF import comparison) also cannot be made in this CI sandbox, which has no MATLAB or Xvfb host.
Human decision on the open questions below, then implement
Research
Compared with EEGLAB, the EEGPrep dialog is missing three checkboxes ("Force continuous data when data is stored in blocks", "Enable overflow detection", "Import uncalibrated data"). It also adds one that EEGLAB's dialog does not have ("Remove marker channel"), shows "Import as memory mapped file", which Arno asked to drop, and shortens two labels. The missing checkboxes are missing because the MNE-based reader path has no overflow, uncalibrated, or blockepoch behaviour: known_differences lists them as not applicable.
Data range (in seconds) to read (default all [0 <NRec>])
...(default all): no NRec, because the header is not read before the dialog
3
Reference chan(s) indices - recommended for BIOSEMI
same
4
Event mode import (see bdf2biosig_events function help)
drops "function"
5
☑ Extract event from marker channel
same
6
☑ Force continuous data when data is stored in blocks
missing
7
memory mapped (excluded)
present, should be removed
8
☐ Enable overflow detection
missing
9
☐ Import uncalibrated data
missing
10
☑ Import EDF+ annotations (try also mexSLOAD below)
Import EDF+ annotations, extra Remove marker channel above it
11
mexSLOAD (excluded)
absent
Proposed Fix
Dialog (pop_biosig_dialog_spec): use rows 1-6 and 8-10 above with EEGLAB's wording and geometry {[3 1]×4, 1×5}. Remove "Import as memory mapped file" and "Remove marker channel" from the GUI; rmeventchan stays a command-line key (EEGLAB has no checkbox for it either). Decode the GUI the way EEGLAB does: add a key to the history only when the value differs from the default, and pass refoptions {'keepref','off'} when there is more than one reference.
Header and help: add a short note to the pop_biosig docstring and to resources/help/pop_biosig.md saying that importmex and memorymapped are not offered (no mexSLOAD in Python; data is read into memory). Whether the memorymapped key and its MemmapData path stay is open question 3.
New options (this is the part that makes the work bigger than a small fix):
uncalibrated='on': return digital values, (phys - offset) / cal. For BDF/EDF this can come from readbdf. MNE does not expose digital values directly.
overflow='on': set samples equal to the header's digital min or max to NaN (BIOSIG OVERFLOWDETECTION). This needs DigMin/DigMax from openbdf.
blockepoch: see open question 1.
Tests (written first): tests/test_stream9_gui_importers.py for dialog tags/order/defaults, and a small BDF fixture in tests/test_stream9_readers.py for overflow → NaN and uncalibrated → integer digital values.
Import comparison (data, srate, labels, events) of the same BDF and EDF in EEGLAB and EEGPrep: this needs MATLAB with BIOSIG on jamming, so a human has to run it, together with the before/after captures and the Word/PDF.
Open questions
blockepoch behaves oddly in EEGLAB. When the box is checked, no key is passed and the finputcheck default 'off' applies, which sets NRec=1. When it is unchecked, 'blockepoch','off' is passed, which also sets NRec=1. So from the GUI the box has no effect, and only the command line 'blockepoch','on' gives trials = NRec. Should EEGPrep copy the GUI no-op, or implement the command-line meaning (one epoch per data record)?
Should overflow and uncalibrated apply to GDF too (MNE path, no digital access), or should they be limited to EDF/BDF and fail clearly for GDF?
Should the memorymapped key and its MemmapData path be removed from the API, or kept only for the command line?
Should row 2 read the header before the dialog to show [0 <NRec>]? That needs the file before inputgui, which pop_biosig already receives.
Problem to know about before anything else: the commit of this issue (6eab931, 'feat: match EEGLAB pop_biosig dialog options') is on develop without a pull request. It was pushed at 12:44 PST by the automatic job repo-push, because my local branch agent/issue-701 had origin/develop as its upstream (my mistake when creating the worktree). Nothing was forced. The upstream is corrected, so it cannot happen again on my branches. Alert 1027 gives Arno the choices: keep it, revert it through a pull request I am preparing, or reset develop himself. The same happened to sccn/eeglab develop with the two-line change of issue 704 (3d3ad9aa3).
The revert is ready if Arno wants it: #718 (Revert pop_biosig dialog commit pushed to develop without review). Merging it puts develop back exactly on df89e80; closing it keeps the commit. After his decision I open the normal pull request of this issue (a branch that carries the change again if 718 is merged).
Update: pull request 698 was merged into develop at 13:30 PST on top of the stray commit, so develop must not be reset. The revert #718 still applies cleanly and removes only the change of this issue (alert 1029 says the same to Arno).
Result of this issue, in the report https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-701/issue-701_before_after.pdf (Word file next to it): the window has EEGLAB's nine controls without mexSLOAD and memory mapping, and the same BDF and EDF files were imported in both programs. The BDF file matches (data within 0.00003 microvolt, same 41 events). Uncalibrated import now matches EEGLAB exactly (difference 0) on both files. Answers to the open questions of the plan above: overflow detection is switched off by BIOSIG for EDF and BDF, so it changes nothing in either program; Force continuous has no effect from EEGLAB's window either; blockepoch on from the command line raises a clear error in EEGPrep for now. Two findings not changed here: EDF labels keep the prefix EEG in EEGPrep, and a channel list loses the BDF events. No normal pull request exists yet because the commit is on develop by mistake; revert: #718.
Progress from the eegprep claude session "eegprep" (turn ended, 2026-11-26 14:47; posted by the orchestrator):
Ten pull requests are open with their captures and reports, the email is sent and orch done is called. One thing went wrong and needs your decision: two of my commits reached develop without a pull request.
Progress from the eegprep claude session "eegprep" (turn ended, 2026-11-27 07:19; posted by the orchestrator):
The structure and the fixes are delivered, but this session was paused from about 5:10 PM to 7:10 AM, so the email went out only this morning at 7:45. During the night you answered the four questions, and the orchestrator merged most pull requests on your instruction. I merged nothing.
Progress from the eegprep claude session "eegprep" (turn ended, 2026-11-27 11:23; posted by the orchestrator):
The four points have pull requests ready, each checked on jamming and with the Mac style. Nothing is merged, and the email with the before and after report (Word and PDF, 10 pages) went out at 11:22.
Merge #766 first.develop still fails the format check, so the lint check fails on every pull request below and their tests are skipped on GitHub. I ran each one's tests on jamming instead.
The automatic agent opened a pull request for each issue within minutes, so I reviewed those and opene
Progress from the eegprep claude session "eegprep" (turn ended, 2026-11-27 13:56; posted by the orchestrator):
Three pull requests are open and ready, none merged. Merge #778 first: it fixes the one test that fails on develop on every platform and makes every other pull request look red.
Progress from the eegprep claude session "eegprep" (waiting for dialog open, 2026-11-27 16:14; posted by the orchestrator):
The status and the report are ready. I am waiting for the test jobs of #776 (started 15:55) so the email states the real check result, then I send it and copy the status into issues 775 and 769.
Closed as replaced: Arno's instruction of November 28, 2026 on pop_biosig (#812, read with the biosig Python library, installed from the extension manager) overrides this one, as he wrote himself. The new work goes on #812, which now links back here.
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
pop_biosig.pyand EEGLABpop_biosig.m/biosig2eeglab.m(pinned commitd0963be9)pop_biosig; pop_biosig menu: say which Python reader EEGPrep uses (MNE-Python, not the BIOSIG toolbox) #703 (menu label wording) is separateResearch
Compared with EEGLAB, the EEGPrep dialog is missing three checkboxes ("Force continuous data when data is stored in blocks", "Enable overflow detection", "Import uncalibrated data"). It also adds one that EEGLAB's dialog does not have ("Remove marker channel"), shows "Import as memory mapped file", which Arno asked to drop, and shortens two labels. The missing checkboxes are missing because the MNE-based reader path has no
overflow,uncalibrated, orblockepochbehaviour:known_differenceslists them as not applicable.Relevant code
src/eegprep/functions/popfunc/pop_biosig.py#L380-L408: dialog specsrc/eegprep/functions/popfunc/pop_biosig.py#L49-L62: GUI result decoding, memorymappedsrc/eegprep/functions/popfunc/pop_fileio.py#L198-L211: MNEread_raw_edf/bdf/gdfreadersrc/eegprep/functions/sigprocfunc/openbdf.py/readbdf.py: native header and raw-record reader (provides digital values for uncalibrated and overflow)functions/popfunc/pop_biosig.mlines 160-176: target uilist/geometryEEGLAB control order, minus the two exclusions:
Channel list (default all):Data range (in seconds) to read (default all [0 <NRec>])...(default all): no NRec, because the header is not read before the dialogReference chan(s) indices - recommended for BIOSEMIEvent mode import (see bdf2biosig_events function help)Extract event from marker channelForce continuous data when data is stored in blocksmemory mapped(excluded)Enable overflow detectionImport uncalibrated dataImport EDF+ annotations (try also mexSLOAD below)Import EDF+ annotations, extraRemove marker channelabove itmexSLOAD(excluded)Proposed Fix
pop_biosig_dialog_spec): use rows 1-6 and 8-10 above with EEGLAB's wording and geometry{[3 1]×4, 1×5}. Remove "Import as memory mapped file" and "Remove marker channel" from the GUI;rmeventchanstays a command-line key (EEGLAB has no checkbox for it either). Decode the GUI the way EEGLAB does: add a key to the history only when the value differs from the default, and passrefoptions {'keepref','off'}when there is more than one reference.pop_biosigdocstring and toresources/help/pop_biosig.mdsaying thatimportmexandmemorymappedare not offered (no mexSLOAD in Python; data is read into memory). Whether thememorymappedkey and itsMemmapDatapath stay is open question 3.uncalibrated='on': return digital values,(phys - offset) / cal. For BDF/EDF this can come fromreadbdf. MNE does not expose digital values directly.overflow='on': set samples equal to the header's digital min or max to NaN (BIOSIGOVERFLOWDETECTION). This needsDigMin/DigMaxfromopenbdf.blockepoch: see open question 1.tests/test_stream9_gui_importers.pyfor dialog tags/order/defaults, and a small BDF fixture intests/test_stream9_readers.pyfor overflow → NaN and uncalibrated → integer digital values.Open questions
blockepochbehaves oddly in EEGLAB. When the box is checked, no key is passed and thefinputcheckdefault'off'applies, which setsNRec=1. When it is unchecked,'blockepoch','off'is passed, which also setsNRec=1. So from the GUI the box has no effect, and only the command line'blockepoch','on'givestrials = NRec. Should EEGPrep copy the GUI no-op, or implement the command-line meaning (one epoch per data record)?memorymappedkey and itsMemmapDatapath be removed from the API, or kept only for the command line?[0 <NRec>]? That needs the file beforeinputgui, whichpop_biosigalready receives.arnodelorme commentedon Nov 26, 2026
Problem to know about before anything else: the commit of this issue (6eab931, 'feat: match EEGLAB pop_biosig dialog options') is on develop without a pull request. It was pushed at 12:44 PST by the automatic job repo-push, because my local branch agent/issue-701 had origin/develop as its upstream (my mistake when creating the worktree). Nothing was forced. The upstream is corrected, so it cannot happen again on my branches. Alert 1027 gives Arno the choices: keep it, revert it through a pull request I am preparing, or reset develop himself. The same happened to sccn/eeglab develop with the two-line change of issue 704 (3d3ad9aa3).
arnodelorme commentedon Nov 26, 2026
The revert is ready if Arno wants it: #718 (Revert pop_biosig dialog commit pushed to develop without review). Merging it puts develop back exactly on df89e80; closing it keeps the commit. After his decision I open the normal pull request of this issue (a branch that carries the change again if 718 is merged).
arnodelorme commentedon Nov 26, 2026
Update: pull request 698 was merged into develop at 13:30 PST on top of the stray commit, so develop must not be reset. The revert #718 still applies cleanly and removes only the change of this issue (alert 1029 says the same to Arno).
arnodelorme commentedon Nov 26, 2026
Result of this issue, in the report https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-701/issue-701_before_after.pdf (Word file next to it): the window has EEGLAB's nine controls without mexSLOAD and memory mapping, and the same BDF and EDF files were imported in both programs. The BDF file matches (data within 0.00003 microvolt, same 41 events). Uncalibrated import now matches EEGLAB exactly (difference 0) on both files. Answers to the open questions of the plan above: overflow detection is switched off by BIOSIG for EDF and BDF, so it changes nothing in either program; Force continuous has no effect from EEGLAB's window either; blockepoch on from the command line raises a clear error in EEGPrep for now. Two findings not changed here: EDF labels keep the prefix EEG in EEGPrep, and a channel list loses the BDF events. No normal pull request exists yet because the commit is on develop by mistake; revert: #718.
arnodelorme commentedon Nov 26, 2026
Progress from the
eegprepclaude session "eegprep" (turn ended, 2026-11-26 14:47; posted by the orchestrator):arnodelorme commentedon Nov 27, 2026
Progress from the
eegprepclaude session "eegprep" (turn ended, 2026-11-27 07:19; posted by the orchestrator):arnodelorme commentedon Nov 27, 2026
Progress from the
eegprepclaude session "eegprep" (turn ended, 2026-11-27 11:23; posted by the orchestrator):arnodelorme commentedon Nov 27, 2026
Progress from the
eegprepclaude session "eegprep" (turn ended, 2026-11-27 13:56; posted by the orchestrator):arnodelorme commentedon Nov 28, 2026
Progress from the
eegprepclaude session "eegprep" (waiting for dialog open, 2026-11-27 16:14; posted by the orchestrator):arnodelorme commentedon Nov 29, 2026
Closed as replaced: Arno's instruction of November 28, 2026 on pop_biosig (#812, read with the biosig Python library, installed from the extension manager) overrides this one, as he wrote himself. The new work goes on #812, which now links back here.
— orchestrator
arnodelorme commentedon Nov 29, 2026
🤖 pop_biosig: report valid GDF extrema lost to the Python binding’s overflow handling. #847
— EEGPrep worker (Codex)
arnodelorme commentedon Dec 1, 2026
🤖 The new pop_biosig GUI finding is tracked in #1043. PR #1042 includes the captures and numerical measurements.