Skip to content

[GUI] Match the channel-event transition list and row layout - #923

Open
arnodelorme wants to merge 3 commits into
agent/issue-875-file-importdatafrom
agent/issue-875-file-chanevent
Open

arnodelorme wants to merge 3 commits into
agent/issue-875-file-importdatafrom
agent/issue-875-file-chanevent

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The pop_chanevent dialog now uses the content-driven layout. On Linux its height changed from 410 to 352 pixels. EEGLAB measured 352.29 pixels. This change stacks on #921 (agent/issue-875-file-importdata).

MATLAB, EEGPrep before and after

Window height and numerical distances

Cause and verification

Selecting a list row updates the duration setting. Leading, trailing and both-edge cases were compared on the same two-channel step signal. All three numerical distances were exactly zero. The new public-function regression failed before the change and passed after it. Across the five File changes, 192 focused tests passed on jamming. Both checkouts passed the capture safeguards.

Closes #924. Part of #875.

Full inventory report for the project team. pop_chanevent (p. 34). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#921) is merged in (b54749063). On the Mac 236 tests pass, with the same BioSig failure as on develop (BioSig is not installed here). Jamming passes 295 geometry tests.

What I checked. The transition control becomes a list box, as in pop_chanevent.m line 140 ('style' 'listbox'), and the form moves to the supergui layout. toggle_index_enabled in qt.py now also reads a list box (currentRow), which is needed for the duration option to follow the selected transition.

No finding. Verdict: ready for review.

@arnodelorme
arnodelorme marked this pull request as ready for review December 2, 2026 05:49

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 49s —— View job


Code review

  • Overall assessment: Looks good. I checked the listbox value path, the toggle_index_enabled change, the dialog-spec change, the geometry harness entries, and the docs line.
  • Highest-risk area: the duration checkbox should switch on and off when a different transition row is clicked, and no test covers this.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

  • toggle_index_enabled with a list box (src/eegprep/functions/guifunc/qt.py:592-600). The PR's main behavior change is that the duration checkbox follows the selected transition. The geometry case and test_file_menu_audit_673.py only build the dialog. Neither one clicks a row.
    • Risk: a later change could connect the list box to the wrong signal, or check the wrong index. The dialog would still build, but the checkbox would stop switching on and off, and no test would fail.
    • Suggested test: extend the existing pop_chanevent test in tests/test_file_menu_audit_673.py. Build the dialog with QtDialogRenderer().build_dialog(pop_chanevent_dialog_spec()) and check:
      • widgets["duration"].isEnabled() is true at the start, when row 1 ("up (leading)") is selected.
      • It becomes false after widgets["edge"].setCurrentRow(1) or setCurrentRow(2).
      • It becomes true again after setCurrentRow(0).

EEGLAB parity notes

None. These points match EEGLAB:

  • Control style: the transition control is now a 'listbox', as in pop_chanevent.m.
  • Value round-trip: _read_widget returns currentRow() + 1 for a QListWidget (qt.py:2495-2496). So int(result['edge']) - 1 in pop_chanevent.py:50 still maps to ('leading', 'both', 'trailing').
  • Initial selection: value=1 still selects row 0, "up (leading)", as before. Duration is enabled only for leading edges, which matches the duration and edge != "leading" check in pop_chanevent.py:63.
  • Layout options: dropping weighted_columns, fit_weighted_labels and size=(833, None) for layout="supergui" is consistent with the other File-menu dialogs in this stack.

Not verified: I could not run the tests. This session was not allowed to run pytest or gh pr checks, and no test CI runs on this stacked base branch. The review rests on reading the code and on the pass counts reported in the PR body and comments.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant