Skip to content

[GUI] Match the pop_interp dialog to EEGLAB #935

Description

@arnodelorme

🤖 #945

The interpolation dialog sizes its rows for the active recording. Continuous data includes the time-range controls, and the epoched dialog is shorter. On jamming the maximum control-top error changed from 76.99 to 0.54 pixels. This PR stacks on #942.

pop_interp.continuous-triptych

pop_interp.epoched-triptych

distances

The three spherical interpolation comparisons use real channels 2, 2 and 4 together, and 7 from the continuous sample. Maximum normalized distance across the three comparisons was 6.91e-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 149 passed, 1 deselected, 6 warnings in 0.66s. 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 #569, eeg_interp takes 0-based channel indices while pop_interp takes 1-based.

Activity

  1. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    • Switch pop_interp_dialog_spec from fixed size/content_margins to layout="supergui" so the window height follows EEGLAB geometry/geomvert for continuous and epoched data
    • Bold the first text row as in pop_interp.m L84
    • Qt regression test (bold title, aligned method/time range column, continuous taller than epoched), changelog, pre-commit
    • PR [GUI] Lay out the pop_interp dialog with EEGLAB's supergui #950
    • CI green (Qt tests run only in CI; the runner lacks libEGL)

    Research: pop_interp_dialog_spec hard-coded window sizes (483x327 / 483x292) and margins instead of the supergui port from #878/#884, and dropped the bold title row. pop_interp.py#L160-L185.

    Not done: no MATLAB capture on jamming and no tools/gui_geometry case. The geometry suite requires all-1 geomvert, and pop_interp uses 0.5 rows.

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