Skip to content

pop_editeventfield (Edit > Event fields): graphical and numerical parity with EEGLAB #724

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_editeventfield, the Edit menu item "Event fields", 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
  • F10: Epoched data: EEGPrep lists the epoch field with a Delete box, EEGLAB hides it.
  • 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

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 has the later label, its next step is "waits for Arno's comments", and it covers 5 findings (GUI layout, epoched-data field list, eventdescription structure, history), so it's more than a small self-contained fix.

    • Read the issue and the current code (develop 871bc7f8)
    • Duplicate check: no open PR for pop_editeventfield
    • Implement once Arno removes later and comments on the Edit menu Word file

    Research

    All five findings trace to pop_editeventfield.py. The dialog spec builds the field rows from event_field_names(EEG["event"]) with no epoch filter, and the header row and the field rows use different geometry. The window height has a fixed floor. Description bookkeeping is done by hand in _apply_options, and the history command is built only from options.

    Relevant code

    • pop_editeventfield.py#L60-L113: dialog spec (F10, F15, F16)
    • #L74 vs #L86: header (1,1,1.2,0.05,0.3,0.42) vs row (1,1,1,0.25,0.6,0.32), so the columns don't line up (F15)
    • #L107: size=(900, max(360, 112 + 34*(n+2))), too tall for few fields (F16)
    • #L183-L265: eventdescription/urevent handling (F14)
    • #L276-L283: history line, empty when there are no options (F24)

    Proposed approach (for review)

    F10: leave epoch out of the field rows when EEG["trials"] > 1, as pop_editeventfield.m does, and add a test on epoched sample data. F15/F16: give the header and field rows the same column widths, and size the window to its content with right-aligned edit text, following rules 7 and 9 of rules/gui-parity.md, then check with a visual parity capture. F14: match EEGLAB's eventdescription slot handling (no new duration entry, urevent order, boundary keys) and check against N53–N58. F24: depends on Arno's decision on the eeg_store/pop_newset history policy, which is shared with other Edit menu windows and should be settled once in #711. Do not reproduce EEGLAB's invalid empty-Ok lines.

    Open question: should the F24 history policy be settled in #711 before this function is changed?

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