Skip to content

[GUI] Rename the reader menus to EEG-IO and MNE-IO - #762

Merged
arnodelorme merged 3 commits into
developfrom
agent/issue-761
Nov 27, 2026
Merged

arnodelorme merged 3 commits into
developfrom
agent/issue-761

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

EEGPrep does not use the File-IO and BIOSIG toolboxes, so four menu labels, two window titles and one file filter now say EEG-IO and MNE-IO. The EEG-IO menu sends EDF, BDF and GDF files to the MNE-IO menu, which reads them through MNE-Python. pop_fileio and pop_biosig keep their names and behave the same from scripts.

Fixes #761
Part of #736 and #735

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Captures: the File > Import data menu and its first sub-menu, before and after, grabbed on jamming under a virtual screen.

Import data menus, before and after

Import data menus, before and after

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 54s —— View job


Code review

  • Overall assessment: Needs changes. The renames and the EEG-IO → MNE-IO redirect work, and the new test covers the redirect. But the EEG-IO dialog and the help text still send EDF/BDF/GDF users to EEG-IO.
  • Highest-risk area: The EEG-IO dialog and the help text both contradict the new redirect.
  • Merge recommendation: Needs changes.

Blocking

None.

Important

  1. The EEG-IO dialog still offers an MNE reader.

    • Where: src/eegprep/functions/popfunc/pop_fileio.py L318, pop_fileio_dialog_spec.
    • Problem: The menu now refuses .edf/.bdf/.gdf (menu_actions.py L747-L754). The EEG-IO dialog still lists "MNE (EDF, BDF, GDF)" and maps it to dataformat="biosig" (L63-L74). Issue Reader menus: FILE-IO becomes EEG-IO and BIOSIG becomes MNE-IO #761 says MNE-IO covers these formats "and only there".
    • Fix: Remove the entry from the GUI popup and its index tuple. Keep dataformat='biosig' for scripts. (Inline comment posted.)
  2. The help text and docs still describe the old menus.

    • src/eegprep/resources/help/troubleshooting_data_formats.md L13 says: "Use pop_fileio or the File-IO plugin menu items for EDF/BDF/GDF". Users open this page from File > Import data > Troubleshooting data formats..., the same menu that now refuses EDF/BDF/GDF.
    • docs/source/user_guide/gui_console_session.rst L261 still calls the dialog "BIOSIG import".
    • resources/help/pop_biosig.md L1-L3 still calls it "BIOSIG-style files" read through "Python File-IO".
    • resources/help/pop_fileio.md L1 still says "Python File-IO readers".
    • AGENTS.md (Public APIs and Docs): "Any user-facing EEGPrep change must include matching Sphinx updates under docs/source/ in the same branch".
    • Fix: Point EDF/BDF/GDF to Using the MNE-IO interface / pop_biosig, list EEG-IO for BrainVision/MFF/CNT/EEG, and update those headings. Consider a short changelog entry for the renamed menus.

Nits

None.

Test gaps

None. test_f8_import_menu_keeps_pinned_labels_and_order locks the four labels. test_eeg_io_menu_sends_files_read_through_mne_to_the_mne_io_menu covers the redirect and checks that no dataset is stored.

EEGLAB parity notes

The labels depart from EEGLAB (FILE-IO/BIOSIG in eeglab.m) on purpose: EEGPrep does not ship those toolboxes. Issue #761 records this decision, and the function names pop_fileio/pop_biosig still match EEGLAB for scripts. Consider adding one line to docs/source/user_guide/eeglab_migration.rst so EEGLAB users can find the renamed menus.

Checked: menu labels and actions, the dispatcher redirect and how it returns, dialog titles, the file filter, how the format popup maps to readers, help resources, Sphinx docs and test coverage.

ControlSpec(
'popupmenu',
'auto|EEGLAB .set|BrainVision|BIOSIG|Neuroscan CNT|Neuroscan EEG|EGI MFF|MATLAB array',
'auto|EEGLAB .set|BrainVision|MNE (EDF, BDF, GDF)|Neuroscan CNT|Neuroscan EEG|EGI MFF|MATLAB array',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: The EEG-IO dialog still offers an MNE reader, but the menu now refuses MNE files.

MenuActionDispatcher now refuses .edf/.bdf/.gdf before this dialog opens (menu_actions.py L747-L754). Yet the EEG-IO dialog still has a "MNE (EDF, BDF, GDF)" format entry, which maps to "biosig" at

chosen = int(result.get("dataformat") or 1)
if chosen > 1:
options["dataformat"] = (
"auto",
"eeglab",
"brainvision",
"biosig",
"neuroscan-cnt",
"neuroscan-eeg",
"egi-mff",
"matlab-array",
)[chosen - 1]
.

Issue #761 says MNE-IO covers EDF/BDF/GDF "and only there". So the EEG-IO window contradicts its own menu guard. If a user picks this entry for any other file, _read_requested_format reads it through MNE as EDF anyway.

Fix: Remove this entry from the GUI popup and remove "biosig" from the index tuple at L65-L74. Keep dataformat='biosig' for scripts, since the PR promises script behavior stays the same. If the entry stays on purpose, say why in the PR body.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

The review bot found that the EEG-IO dialog still offered an "MNE (EDF, BDF, GDF)" format although the EEG-IO menu now sends those files to MNE-IO, and that the help pages and the user guide still used the old FILE-IO and BIOSIG names.

Commit fcaa0b2 removes that entry from the EEG-IO data-format list and from its index list, while scripts keep pop_fileio(..., dataformat="biosig"). The help pages troubleshooting_data_formats, pop_biosig and pop_fileio, and gui_console_session.rst now name the EEG-IO and MNE-IO menus, with a changelog line and one line in eeglab_migration.rst. The function names pop_fileio and pop_biosig are unchanged here; their rename comes in a separate pull request on top of this one.

Tests: 216 passed in test_file_menu_audit_673, test_stream9_gui_importers, test_file_menu_pop_functions, test_stream9_readers, test_pop_fileio_brainvision_mat, test_gui_main_window and test_sample_data_pop_functions, with a new check that the EEG-IO list has no MNE entry. The four failures there (an MFF test that needs defusedxml and three ICLabel window tests) fail the same way without this change.

— orchestrator

@arnodelorme
arnodelorme merged commit b7af604 into develop Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reader menus: FILE-IO becomes EEG-IO and BIOSIG becomes MNE-IO

1 participant