Skip to content

pop_mneio: new import function through MNE, an optional install like BioSig #813

Done

Description

@arnodelorme

Arno wants MNE's readers as their own optional import, separate from pop_biosig.

Captures

Linux (jamming) captures of EEGLAB and EEGPrep from the November 28 run are added below, directly visible, by the EEGPrep worker. Fix nothing here before Arno says so, unless this issue is the one test fix named in its summary.

Arno's words

Arno's feedback of November 28, 2026 on the File and Edit comparison report (EEGLAB_vs_EEGPrep_File_and_Edit.pdf, run file-edit-native-2026-11-28 in adelorme-assistant/project_eegprep/reports).

Pop_mneio is a new function that uses MNE functions and optional installs like BIOSIG. It should install MNE as well as all MNE import libraries, and provide an interface to it.

Activity

  1. added
    gui-parity
    on Nov 28, 2026
  2. claude commented on Nov 28, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    pop_biosig already is the MNE reader: it calls pop_fileio, which calls mne.io.read_raw_edf/bdf/gdf. MNE is already an optional extra (eegprep[mne]), but it is installed only from the shell. A missing MNE gives a text message. There is no GUI "install it?" prompt and no Extension Manager entry. #812 now gives the pop_biosig name back to the biosig Python package, so #765 (rename pop_biosig to pop_mneio) and #813 are now one piece of work.

    Relevant code

    Proposed approach

    1. Split the readers. Move the current pop_biosig.py to pop_mneio.py with no alias, as in Rename pop_fileio to pop_eegio and pop_biosig to pop_mneio, with no old names kept #765. Point the MNE-IO menu items, history strings, help (resources/help/pop_mneio.md), tests and docs at pop_mneio. pop_biosig: read with the biosig Python library, installed from the extension manager #812 then rebuilds pop_biosig on the biosig package.
    2. Optional install. Widen the mne extra to "MNE plus its import libraries". Candidates: mne, defusedxml, edfio, eeglabio, pymatreader, mffpy, h5py. Add an "MNE-IO" entry to the Extension Manager that runs pip install "eegprep[mne]".
    3. Install prompt. When MNE is missing, the MNE-IO menu opens a window offering the install, like the BioSig prompt of pop_biosig: read with the biosig Python library, installed from the extension manager #812. Build one shared "missing optional reader, install?" helper for both issues, not two copies.
    4. Interface. Keep the current window (from pop_mneio, formerly pop_biosig (File > Import data > BDF, EDF and MNE-IO interface): graphical and numerical parity with EEGLAB #735/pop_biosig window: same controls as EEGLAB without mexSLOAD and memory mapping; compare imported files #701). Optionally widen the file filter to the other formats mne.io.read_raw reads (.fif, .vhdr, .set, .cnt, .mff, .snirf…).
    5. Tests. Update the pop_biosig references in tests/test_stream9_readers.py, tests/test_stream9_gui_importers.py, tests/test_optional_extras.py and the BDF/EDF reference tests. Extend tests/test_console_workspace.py for the history name. Add one GUI test that the prompt shows up when mne cannot be imported.

    Open questions

  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The MNE-IO menu now opens pop_mneio, which reads a file or recording folder through MNE. Both the import menu and the extension manager can install the optional readers into the running EEGPrep environment. The imported dataset and command appear in the GUI and console.

    Pull request #842.

    Linux import menu and dialog

    Relative differences on three recordings read from identical files

    Editable Word report · PDF report

    Maximum signal differences relative to MATLAB on common channels were 2.13 × 10⁻¹⁶ for SET, 3.38 × 10⁻⁸ for EDF and 3.73 × 10⁻⁸ for BDF. All 154 SET event types matched. The largest SET latency difference was 0.0000633 sample. MNE preserved BDF’s Status channel and supplied zero annotations. MATLAB BioSig decoded 41 events.

    Verification

    278 reader, extension, console and menu tests passed, with 7 reference cases deselected. A second run of the Qt dialogs and affected readers passed 189 tests, with 4 reference cases deselected. Pre-commit, Ruff and ty passed. A fresh Linux environment installed MNE 1.13.2 from the GUI and opened a 32-channel recording with 30,504 samples and 154 events. The reference pins are EEGLAB d0963be9d81acc5b66e84f8d3d7c89e3ce127cc4 and eeglab_tests fec88f9ffe7c225eb1de8924db8b6a3e0d53a4d9. Full MATLAB reference workflow. The reference workflow uses db5cff9. The only subsequent change at GitHub’s recorded merge commit 5b94122 is a comment explaining MNE event indexing. The installer follow-up also handles environments with MNE present and some format packages missing. Five of the seven reference groups passed. The STUDY group had 340 passed, 27 skipped, 3 deselected and one failure in 17 min 15 s. The assertion on empty structures is already tracked on develop by #685 and #691. The core group is still running. The standalone installation job independently reproduced the MNE Help-marker mismatch. #857 and #850 both include its tested correction.

    — EEGPrep worker (Codex)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions