Skip to content

[GUI] Match the pop_rejcont dialog to EEGLAB #934

Description

@arnodelorme

🤖 #942

The continuous rejection dialog displays the full channel range in brackets and sizes its seven rows from their contents. On jamming the maximum control-top error changed from 103.17 to 0.47 pixels. This PR stacks on #941.

pop_rejcont.continuous-triptych

distances

The selected sample intervals matched exactly at 6, 10 and 14 dB. The cases returned 19, 8 and 0 intervals, respectively. Maximum normalized distance across the three comparisons was 0.

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 173 passed, 8 deselected in 15.32s. 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 #551, [Release readiness] Stream 6: Rejection numbers.

Activity

  1. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    pop_rejcont_dialog_spec still used the older qt layout with size=(560, 332). _apply_spec_size multiplies a preset height by EEGLAB_ROW_SCALE (1.1) and uses it as a floor, so the window opened at 365 px. The channel default was 1:N, not [1:N].

    Relevant code

    Proposed Fix

    Use layout="supergui" (as pop_rejspec and pop_select do) and drop size. inputgui_layout gives 559 x 273 px for these seven [2 1] rows. Default elecrange to [1:N], which one_based_indices already parses.

    Status: the new Qt test (tests/test_gui_rejection_dialogs.py) is skipped locally because libEGL is missing on this runner, so CI runs it for the first time. The visual parity case window size is now 560 x 273. The EEGLAB pop_rejcont.m source was not reachable here, so the [1:N] default comes from the issue report. No native side-by-side capture was run.

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