Skip to content

pop_editoptions (Preferences): remove the options with no meaning in Python and say why in the header #709

Done

Description

@arnodelorme

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.
  • Rules: 12 of the EEGPrep GUI rules: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md
Arno's comment, in his words

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.

From his annotated copy of the report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/file-menu-2026-11-26/EEGPrep_vs_EEGLAB_File_menu_2026-11-26_Arno-comments.docx

How to test

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.

Activity

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

    @claude
    Contributor

    🤖 Plan:

    • 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.

    Relevant code

    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

    1. 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.
    2. Header: list each dropped option with a one-line reason taken from Arno's comment in the pop_editoptions module docstring.
    3. 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.
    4. 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.
  3. arnodelorme commented on Nov 26, 2026

    @arnodelorme
    CollaboratorAuthor

    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.

  4. 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
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