Skip to content

pop_rmdat (Edit > Select data using events): graphical and numerical parity with EEGLAB #730

Backlog
1 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_rmdat, the Edit menu item "Select data using events", 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
  • F11: Ok with an empty event box: nothing in EEGLAB, pop_rmdat(EEG, [], [-1 1], 0) in EEGPrep. Cause not read yet.
  • 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).
  • F16: The window is taller than its content, and the text of the edit boxes is left aligned (rule 7).

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

1 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: analysis only, no PR. The issue is labeled later ("waits for Arno's comments on the Edit menu Word file"), and its three findings (F11 Ok behavior, F14 structure, F16 window layout) are GUI parity work plus numerical work. That goes beyond a small self-contained bug fix and needs his decisions first.

    • Read the issue and src/eegprep/functions/popfunc/pop_rmdat.py
    • Duplicate check: no open PR mentions pop_rmdat
    • Implementation: waits until the later label is removed and Arno has commented

    Research

    F11: _run_gui turns an empty event box into events=[]. pop_rmdat then always runs and returns pop_rmdat(EEG, [], [-1 1], 0); invertsel=0 comes from the default popup value 1 ("Keep selected"). According to the report, EEGLAB does nothing in this case. The likely fix is to return (EEG, "") when the GUI event box is empty, but this has to be checked against pop_rmdat.m in the pinned EEGLAB commit, because the non-GUI path treats [] as "all events".
    F14: the eventdescription, boundary-key and urevent-order differences come from pop_select(EEG, "notime"/"time", windows), not from pop_rmdat. Fixing them there would change pop_select for every caller (a core-function change that needs an EEGLAB reference run).
    F16: the dialog spec hard-codes size=(616, 221) and the margins, and the edit boxes use the default left alignment.

    Relevant code

    Proposed approach

    1. F11: once the EEGLAB behavior is confirmed, return early with no history when the GUI event box is empty, and add a GUI regression test.
    2. F16: apply the project_eegprep rules/gui-parity.md fixes (window height, edit text alignment) to this dialog only, checked with the visual parity loop.
    3. F14: track separately against pop_select, since the differences come from it and fixing them there affects every caller.

    Open question for Arno: should F14 be fixed in pop_select (shared) or accepted as a known difference?

  3. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The new Linux comparison, captures and verified GUI fix are in #903 and PR #902.

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