Skip to content

[GUI] Match the pop_rejtrend dialog to EEGLAB #910

Description

@arnodelorme

🤖 The pop_rejtrend channel and ICA dialogs now take their height from the seven recorded rows. The largest vertical control offset changed from 74.32 to 0.86 pixels on jamming. This branch stacks on #926. #927

Channel mode, EEGLAB, EEGPrep before and after

ICA mode, EEGLAB, EEGPrep before and after

Control placement and six numerical rejection comparisons

Epoch rejection marks must match exactly. All six masks matched.

Scope and verification

Exercise the public channel and ICA calls on jamming with the same epoched dataset. Compare each control and the submitted rejection masks. Part of #875. Follow-up to #875, Dialog geometry test suite on Linux: ten dialogs drawn from the same geometry in EEGLAB and EEGPrep, supergui reworked to match MATLAB.

Activity

  1. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    pop_rejtrend_dialog_spec uses the legacy fixed-size layout (size=(600, 304)) instead of layout="supergui", which spreads the rows. It also shortens EEGLAB labels, drops the ' ' checkbox strings, and passes the blank row as a spacer instead of a 1 geometry row.

    Relevant code

    Proposed Fix

    Mirror the EEGLAB uilist: layout="supergui", geometry {g1 g1 g1 g1 1 g2 g2}, label R-square limit to allow ([0:1], Ex: 0.8), slope label with units, checkbox strings ' '.

    Open for a human: the EEGLAB fastif at line 118 is inverted, so the data dialog says (std. dev./epoch) and the component dialog says (uV/epoch). #911 copies EEGLAB literally. Not done here: adding pop_rejtrend to tools/gui_geometry (record_geometry.m + draw_geometry.m reference), which needs MATLAB, and a side-by-side screenshot.

  2. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Follow-up of December 1, 2026: the slope label of this dialog showed the two units swapped, as EEGLAB does. Arno chose to show the correct unit in EEGPrep (uV/epoch for channel data, std. dev./epoch for components) and to fix EEGLAB too. EEGPrep: #1060. EEGLAB: sccn/eeglab#1009.

  3. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    Done: Pull request 1060 shows the correct slope unit in the pop_rejtrend dialog: uV/epoch for channel data and std. dev./epoch for components, with the help and both tests updated and EEGLAB pull request 1009 named in the test exception. It is open and not merged. On jamming the two test files give 308 passed on the branch.

    Pull request: #1060

    — eegprep, reported with orch done

  4. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    Done: EEGLAB pull request 1009 is analyzed and merged into EEGLAB develop (merge commit 3dd650cc7), as Arno authorized. The analysis confirms it: rejtrend.m fits the slope over a window scaled from 0 to 1 on the raw channel data, so channel data is in uV per epoch and components are in activation units (std. dev.), which is what the help of pop_rejtrend.m already said and what pop_eegthresh.m shows. The matching EEGPrep pull request is 1060, already open; its two recorded cases are being recorded again from the corrected EEGLAB so its test exception can go.

    Pull request: sccn/eeglab#1009

    — eegprep, reported with orch done

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions