Skip to content

pop_studyerp: two rows of text, the same in EEGLAB and EEGPrep #819

Done
sccn/eeglab
#999

Description

@arnodelorme

The text is cut in EEGLAB, and EEGPrep shows different, partly missing text.

Captures

Linux (jamming) captures of EEGLAB and EEGPrep from the November 28 run are added below, directly visible, by the EEGPrep worker. Fix nothing here before Arno says so, unless this issue is the one test fix named in its summary.

Arno's words

Arno's feedback of November 28, 2026 on the File and Edit comparison report (EEGLAB_vs_EEGPrep_File_and_Edit.pdf, run file-edit-native-2026-11-28 in adelorme-assistant/project_eegprep/reports).

pop_studyerp Problem in MATLAB as the text is cut. In Python, some of the text is not present; it's not the same text. What should be done instead is to have two rows with different text in both MATLAB and Python.

Activity

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

    @claude
    Contributor

    🤖 Plan:

    Status: No PR opened. The fix also needs a change in sccn/eeglab, which can't be made from this repo, and the issue says to wait for Arno. Once the wording is agreed, the EEGPrep part is about 10 lines.

    Research

    EEGLAB puts a 5-line string (lines split with 10) in one text control with geomvert 4, so the last line is cut. EEGPrep replaced it with one shorter sentence in a different wording, in a row of height 1. That drops the "grand average ERPs" and "standard editor" lines, and the rest no longer matches EEGLAB's words.

    Relevant code

    Proposed Fix

    Use two text controls, one row each, with the same words on both sides. Proposed wording (Arno to confirm):

    1. Creates a simple STUDY and its condition grand average ERPs.
    2. Store each condition of each subject in a separate dataset.

    EEGLAB (pop_studyerp.m):

    guispec = { ...
        {'style' 'text' 'string' 'Create simple ERP STUDY' 'FontWeight' 'Bold' 'fontsize', 12} ...
        {'style' 'text' 'string' 'Creates a simple STUDY and its condition grand average ERPs.' } ...
        {'style' 'text' 'string' 'Store each condition of each subject in a separate dataset.' } ...
        ... % count rows unchanged
    guigeom = { [1] [1] [1] [1 0.3 0.4] [1 0.3 0.4] };
    % and remove 'geomvert', [1 4 1 1]

    EEGPrep (pop_studyerp_counts_dialog_spec): set geometry=((1,), (1,), (1,), (1, 0.3, 0.4), (1, 0.3, 0.4)) and use two ControlSpec("text", ...) rows with the same strings. Then recapture the pop_studyerp visual parity case.

    This wording drops the line "Create other STUDY using the standard editor." If Arno wants it kept, it can go in a third row.

  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The ERP STUDY wizard explains what it computes and how to arrange the datasets in two visible rows. EEGLAB clipped the previous instructions, and EEGPrep omitted the purpose of the calculation.

    Pull request #836 and companion MATLAB pull request sccn/eeglab#999.

    EEGLAB and EEGPrep before and after on Linux

    Editable Word report · PDF report

    Verification

    207 local GUI and function tests passed. Four reference cases were deselected. Pre-commit, Ruff and ty passed. On jamming under Xvfb, both complete lines were visible in MATLAB R2025b and Qt. The condition and subject defaults were 1 and 15. Windows CI reports the pre-existing one-pixel Qt row check #834, addressed by #835. Windows job.

    — EEGPrep worker (Codex)

  4. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The new pop_studyerp GUI finding is tracked in #1033. PR #1032 includes the captures and numerical measurements.

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