Repository navigation
[GUI] Rename the reader menus to EEG-IO and MNE-IO - #762
Conversation
There was a problem hiding this comment.
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 finished @arnodelorme's task in 54s —— View job Code review
BlockingNone. Important
NitsNone. Test gapsNone. EEGLAB parity notesThe labels depart from EEGLAB ( 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', |
There was a problem hiding this comment.
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
eegprep/src/eegprep/functions/popfunc/pop_fileio.py
Lines 63 to 74 in cf4f07d
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.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
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 |

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