Skip to content

pop_select (Edit > Select data): graphical and numerical parity with EEGLAB #729

Backlog
0 of 1 issue completed

Description

@arnodelorme

EEGPrep checks each EEGLAB function on its own, in one issue, for both the window and the numbers (Arno, November 26, 2026). This issue is pop_select, the Edit menu item "Select data", from the Edit menu report of November 26, 2026 (EEGPrep develop df89e80 against EEGLAB develop 16cc13212, jamming under Xvfb).

Findings of the report for this function
  • F13: Channel numbers count from 0 in EEGPrep (calls and history line), trials, points and events from 1. Documented in the docstring. Decision needed.
  • F14: Minor differences of structure with the same data and events (an eventdescription entry for duration, urevent order, empty keys of a boundary event, the trailing empty slot of pop_delset).
  • F15: Edit boxes and checkboxes do not line up vertically (rule 9 of the GUI rules).
  • F16: The window is taller than its content, and the text of the edit boxes is left aligned (rule 7).
  • F24: History: no eeg_store line after an edit in place, pop_newset shown or not, and EEGLAB writes invalid lines on Ok with nothing typed.

F15, F16, F18, F21 and F24 are shared by several windows: fix them here only for this function's window, under the GUI rules of project_eegprep (rules/gui-parity.md).

Files

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

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

    @claude
    Contributor

    🤖 Plan:

    Research

    At 871bc7f8, pop_select takes 0-based channel indices from Python calls, but the GUI uses 1-based channels and trials/points/events are 1-based everywhere (F13). The dialog layout is fixed by the geometry, size and geomvert values in pop_select_dialog_spec (F15/F16). History comes from _history_command; the dataset-store line (eeg_store/pop_newset) is written by the session/menu layer, not by pop_select (F24).

    Relevant code

    • src/eegprep/functions/popfunc/pop_select.py#L68-L103: entry point; docstring L75 documents the 0-based channel split
    • src/eegprep/functions/popfunc/pop_select.py#L231-L250: numeric channel index validation (0-based)
    • src/eegprep/functions/popfunc/pop_select.py#L645-L746: dialog spec (geometry rows (1, 1, 0.25, 0.23, 0.51), size=(695, 404))
    • src/eegprep/functions/popfunc/pop_select.py#L848-L854: history line
    • src/eegprep/functions/adminfunc/console.py#L1266-L1280: console conversion of pop_select history (has to follow any F13 change)

    Proposed approach (needs human sign-off)

    • F13 (decision): either (a) keep 0-based Python channel indices and document them (current behaviour), or (b) make numeric channel 1-based like EEGLAB and the GUI. Option (b) breaks existing callers and tests, so it should be decided for every pop_* that takes channel indices, not just this one.
    • F15/F16: give the edit column and checkbox column one shared width so rows line up, compute height from geomvert instead of the fixed 404, and right-align the edit text if rule 7 asks for that. Check with the eeglab-gui-visual-parity loop against the jamming captures.
    • F14: compare eventdescription/urevent handling with eeg_checkset and pop_select.m. This probably belongs to eeg_checkset/eeg_eegrej (shared code), so treat it as its own change.
    • F24: decide which history lines are wanted (EEGLAB's invalid Ok-with-nothing-typed line should not be copied). This lives in the session/menu layer and is shared with other Edit dialogs, so fix it once in a cross-window issue.

    Open questions: F13 option (a) or (b)? Should F14/F24 be split into Edit-menu-wide issues under #711?

  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 pop_select: include the correct first sample for a 1-based point range. #853

    — 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-paritylater

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions