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_editoptions (Preferences): remove the options with no meaning in Python and say why in the header #709
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.73 Preferences (finding F11)
What to do: In EEGPrep's Preferences window keep the toolbox options and the -99 versus boundary option; remove the two-file saving, the 2021 field format switch (always on), parallel toolbox, memory mapped arrays, precision, EEG object, RMS scaling (always on), advanced options, plugin show and HTML options. Document in the header of pop_editoptions each option left out and why. Check that the saved defaults stay as described.
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.
For Python: Python should only save the data in one file. So no more two-file options. Also, it's saved as fields, so the 2021 option is the default and there are no options to undo it. Parallel toolboxes are irrelevant. Memory map array is irrelevant. Precision is irrelevant. EEG object is irrelevant. Always scales components to RMS in Python by default. Toolbox options are relevant. Advanced options are irrelevant. -99 vs boundary should be kept. Plugin show option should be removed. HTML option is irrelevant. These choices should be documented in the function header in Python. As to why they are not included.
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.
Read issue, pop_editoptions, EEG_OPTIONS, and every runtime/test/doc consumer of the affected options
Duplicate-work preflight (no open PR or issue touches pop_editoptions)
Post analysis; no PR opened (scope >100 lines across modules, open questions below, and the required captures need jamming)
Research
The dialog is built from _OPTION_LABELS, _DEFAULT_OPTIONS, _SUPPORTED_OPTIONS and _OPTION_SECTIONS in one file, so trimming the window is easy. The work is larger than that because two of the options to remove still drive runtime behavior: option_savetwofiles sets pop_saveset's default save mode, and option_memmapdata turns on numpy.memmap loading of .fdt sidecars. Both are documented in four user-guide pages and two help files, and they are covered by tests. option_scaleicarms is also read from a module global in eeg_checkset, not from EEG_OPTIONS.
Other consumers: docs/source/user_guide/{configuration,storage,advanced_topics,ica_rejection}.rst, resources/help/{pop_editoptions,pop_saveset,pop_loadset}.md, tests/test_stream11_preferences.py (asserts disabled controls via parametrized keys), tests/test_file_menu_audit_673.py (asserts the option_single tooltip), tests/test_storage.py::test_option_savetwofiles_defaults_to_sidecar_storage.
Proposed Fix
Dialog: drop option_savetwofiles, option_saveversion6, option_saveasstruct, option_parallel, option_single, option_memmapdata, option_eegobject, option_scaleicarms, option_showadvanced, option_showpendingplugins and option_htmlingraphics from _OPTION_LABELS. Remove the advanced gate and the "Disabled preferences…" line. Keep storedisk, computeica, rememberfolder, donotusetoolboxes, boundary99, allmenus, checkversion, cachesize and native_dialogs, with their current enabled states.
Header: list each dropped option with a one-line reason taken from Arno's comment in the pop_editoptions module docstring.
Saved defaults: keep the keys in EEG_OPTIONS (loading saved options.json files and running EEGLAB scripts depends on them). _validate_options would refuse changes that move option_savetwofiles, option_saveasstruct or option_scaleicarms away from their fixed values (0, 1, 1). Add a test that the dialog no longer offers these options and that pop_editoptions(option_savetwofiles=1) raises an error.
Docs/help: update pop_editoptions.md and the user-guide pages listed above.
Open questions for a human:
Does "remove the two-file saving" cover only the Preferences checkbox, or should option_savetwofiles/option_memmapdata stop working at runtime? The second removes the default sidecar path and memmap loading from storage.py, pop_saveset, pop_loadset and epoch.py, so it would be a separate, larger PR. An explicit pop_saveset(..., savemode="twofiles") would still work either way.
"Toolbox options are relevant": option_donotusetoolboxes is disabled today as MATLAB-only. Should it stay visible but disabled, or does Arno mean something else?
Should unlisted options (storedisk, computeica, rememberfolder, allmenus, checkversion, cachesize, native_dialogs) stay as they are?
The issue asks for branch agent/issue-709 and Word/PDF captures from jamming (MATLAB R2025b + Xvfb). This runner cannot produce those, so a person or agent with jamming access has to take the captures.
Pull request: #719 ([GUI] Remove options with no meaning in Python from Preferences). Ten options left the window, each with its reason in the header of pop_editoptions; the toolbox option and the -99 boundary option stay. Captures and tests (98 passed on jamming): https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-709/issue-709_before_after.pdf (Word file next to it). Answers to the open questions above, for Arno to confirm: the keys stay in EEG_OPTIONS and still work from scripts (removing two-file saving at run time would be a separate, larger pull request); the toolbox option stays visible and greyed; the options he did not mention are unchanged. Arno merges.
changed the title [-]Preferences (pop_editoptions): remove the options with no meaning in Python and say why in the header[/-][+]pop_editoptions (Preferences): remove the options with no meaning in Python and say why in the header[/+]on Nov 27, 2026
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
pop_editoptions,EEG_OPTIONS, and every runtime/test/doc consumer of the affected optionspop_editoptions)Research
The dialog is built from
_OPTION_LABELS,_DEFAULT_OPTIONS,_SUPPORTED_OPTIONSand_OPTION_SECTIONSin one file, so trimming the window is easy. The work is larger than that because two of the options to remove still drive runtime behavior:option_savetwofilessetspop_saveset's default save mode, andoption_memmapdataturns onnumpy.memmaploading of.fdtsidecars. Both are documented in four user-guide pages and two help files, and they are covered by tests.option_scaleicarmsis also read from a module global ineeg_checkset, not fromEEG_OPTIONS.Relevant code
src/eegprep/functions/adminfunc/pop_editoptions.py#L17-L68: option labels, sets and sectionssrc/eegprep/functions/adminfunc/pop_editoptions.py#L140-L190: dialog spec, including the "Show advanced" gatesrc/eegprep/functions/adminfunc/eeg_options.py#L11-L48: defaults (option_single=1,option_saveasstruct=1,option_scaleicarms=1,option_savetwofiles=0)src/eegprep/functions/adminfunc/storage.py#L824-L831:memmap_enabledandsavetwofiles_enabledare livesrc/eegprep/functions/adminfunc/eeg_checkset.py#L23:option_scaleicarmshard-codedTrueOther consumers:
docs/source/user_guide/{configuration,storage,advanced_topics,ica_rejection}.rst,resources/help/{pop_editoptions,pop_saveset,pop_loadset}.md,tests/test_stream11_preferences.py(asserts disabled controls via parametrized keys),tests/test_file_menu_audit_673.py(asserts theoption_singletooltip),tests/test_storage.py::test_option_savetwofiles_defaults_to_sidecar_storage.Proposed Fix
option_savetwofiles,option_saveversion6,option_saveasstruct,option_parallel,option_single,option_memmapdata,option_eegobject,option_scaleicarms,option_showadvanced,option_showpendingpluginsandoption_htmlingraphicsfrom_OPTION_LABELS. Remove the advanced gate and the "Disabled preferences…" line. Keep storedisk, computeica, rememberfolder, donotusetoolboxes, boundary99, allmenus, checkversion, cachesize and native_dialogs, with their current enabled states.pop_editoptionsmodule docstring.EEG_OPTIONS(loading savedoptions.jsonfiles and running EEGLAB scripts depends on them)._validate_optionswould refuse changes that moveoption_savetwofiles,option_saveasstructoroption_scaleicarmsaway from their fixed values (0, 1, 1). Add a test that the dialog no longer offers these options and thatpop_editoptions(option_savetwofiles=1)raises an error.pop_editoptions.mdand the user-guide pages listed above.Open questions for a human:
option_savetwofiles/option_memmapdatastop working at runtime? The second removes the default sidecar path and memmap loading fromstorage.py,pop_saveset,pop_loadsetandepoch.py, so it would be a separate, larger PR. An explicitpop_saveset(..., savemode="twofiles")would still work either way.option_donotusetoolboxesis disabled today as MATLAB-only. Should it stay visible but disabled, or does Arno mean something else?agent/issue-709and Word/PDF captures from jamming (MATLAB R2025b + Xvfb). This runner cannot produce those, so a person or agent with jamming access has to take the captures.arnodelorme commentedon Nov 26, 2026
Pull request: #719 ([GUI] Remove options with no meaning in Python from Preferences). Ten options left the window, each with its reason in the header of pop_editoptions; the toolbox option and the -99 boundary option stay. Captures and tests (98 passed on jamming): https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-709/issue-709_before_after.pdf (Word file next to it). Answers to the open questions above, for Arno to confirm: the keys stay in EEG_OPTIONS and still work from scripts (removing two-file saving at run time would be a separate, larger pull request); the toolbox option stays visible and greyed; the options he did not mention are unchanged. Arno merges.
[-]Preferences (pop_editoptions): remove the options with no meaning in Python and say why in the header[/-][+]pop_editoptions (Preferences): remove the options with no meaning in Python and say why in the header[/+]