Skip to content

[GUI] Match the pop_subcomp dialog to EEGLAB #936

Description

@arnodelorme

🤖 #949

The Remove components dialog uses the recorded column widths for remove and retain, with the height fitted to its three rows. On jamming the maximum control-top error changed from 90.44 to 0.47 pixels. This PR stacks on #945.

pop_subcomp.epoched-triptych

distances

The three ICA comparisons remove component 1, remove components 2 and 5, and retain components 1, 3 and 6. All compare the full projected dataset. Maximum normalized distance across the three comparisons was 2.84e-07.

Verification and methods

The two public functions opened on the same sample inputs with clean EEGLAB and EEGPrep checkouts. For each numerical case the distance is the largest absolute error divided by the largest absolute MATLAB output. Tests on jamming reported 135 passed in 0.64s. The native MATLAB R2025b run is separate from the Python test runner.

Verification and history

Compare the two native windows on jamming, including input, submission and output. Record both checkout SHAs and verify the active Python import path. Part of #875. Follow-up to #675, GUI audit Nov 23: Edit and Tools fixes (DIPFIT co-registration and fine fit, epoched Select data, firpmord, Inspect/label components).

Activity

  1. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    • Research and duplicate check (no overlapping PRs)
    • Move dialog to supergui layout with EEGLAB geometry
    • Regression test + changelog
    • Open PR [GUI] Changelog note for the pop_subcomp supergui layout #970
    • CI green: base install and review passed; docs, pre-commit, ruff/ty and EEGLAB Python backend still queued for runners

    Research
    pop_subcomp_dialog_spec uses the old "qt" layout with a preset size=(538, 231), custom margins and geometry (3.2, 1.0). EEGLAB pop_subcomp.m passes geom = { 1 [2 0.7] [2 0.7] } to inputgui.

    Relevant code

    Fix (PR #970)
    Use layout="supergui" with EEGLAB geometry and drop the preset size/margins. The supergui port gives 170.9 px height with MATLAB Linux text extents (EEGLAB: 171).

    Not done: a MATLAB reference case in tools/gui_geometry/ (needs MATLAB) and a side-by-side native comparison on jamming (PySide6 unavailable in this runner).

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