Skip to content

pop_comments (Edit > About this dataset): graphical and numerical parity with EEGLAB #727

Backlog

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_comments, the Edit menu item "About this dataset", 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
  • F9: EEGPrep reflows the comments (21 lines become 6), and SAVE with no edit writes a pop_comments history line with the reflowed text. concat gives different line breaks.
  • F22: Other window title, and EEGLAB's window is pale with large buttons.

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

Activity

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

    @claude
    Contributor

    🤖 Plan:

    Not actionable yet, no PR opened. The issue has the later label, and its next step says it waits for Arno's comments on the Edit menu Word file. There is no agreed definition of done for F9 or F22. Once Arno says which fixes to make, please remove later and confirm:

    1. F9: should SAVE with no edit write no history at all (com = ''), or write the history line with the original line breaks? And is the expected concat output the line-for-line EEGLAB char-matrix join from N69/N70 (numerical/results.md on jamming)?
    2. F22: should the window title be the plottitle argument (EEGLAB's figname) instead of the fixed Read/Enter text -- pop_comments()? Which EEGLAB capture is the reference for the pale background and button size?

    Where to look in the code

    • pop_comments.py#L36-L52: the GUI path always builds a history command, even when the text is unchanged (F9)
    • pop_comments.py#L88-L99: turns comments into text. A char matrix comes in as rows and is joined with \n. The 21→6 reflow likely comes from the QTextEdit round trip or from loading, which needs the jamming dataset to check
    • pop_comments.py#L102-L107: the concat join (strips and adds a single \n), which is where it can differ from EEGLAB's strvcat behavior
    • pop_comments.py#L61-L85: the dialog spec. The title is hard-coded at L69, while display_title is only passed to known_differences (F22)

    Likely fix (after confirmation): skip the history entry when the edited text equals old_text, keep the original line splits when converting to text and back, match EEGLAB's char-matrix concat, and take the window title from plottitle. Each finding is a change under 100 lines, but F9 needs the N68–N70 fixtures from jamming for a regression test.

  3. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The new native capture on jamming and the resizable comments-window fix are tracked in #925. The November 30 order on #875 includes this Edit menu window.

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