Skip to content

[GUI] Open the wavelet calculator with blank and vector frequencies - #930

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-928-tf-cycle-calc
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-928-tf-cycle-calc

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

TF cycle calc now opens when the parent time-frequency field is empty, a scalar, a frequency list or a range. Clicking OK returns the selected frequencies and calculated cycles to the parent. The calculator uses the four native rows. The largest vertical error is 0.54 px. This stacks on #927.

Blank field, parent visible before the fix

Scalar 10 Hz

Frequencies 8 and 16 Hz, parent visible before the fix

Control position histogram and numerical errors

All seven wavelet width units were compared on jamming using equivalent MATLAB and Python values, scalar and vector widths, and logarithmic spacing. The maximum difference across all eight output columns, divided by max(1, |MATLAB value|), was 0 (tolerance 1e-12).

Inputs and checks

The two failed baseline calls left the parent open, as shown. The focused tests drive the real child through submission and read the parent fields. Geometry and time-frequency suites reported 158 passed, 8 MATLAB Engine skips, 4 deselected. The independent seven-unit numerical run used MATLAB R2025b on jamming.

Fixes #928. Part of #875.

Full inventory report for the project team. tf_cycle_calc (p. 100). PDF · Editable Word.

@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 1, 2026 •

Copy link
Copy Markdown
Contributor

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


Code review

  • Overall assessment: Looks good. _format_vector now uses the shared parse_numeric_sequence (tf_cycle_calc_dialog.py#L59-L65), so the calculator accepts the parent's raw text: empty, a scalar, a list, or a start:step:stop range.
    • Unparseable text shows as blank, the way EEGLAB's str2num does, instead of raising.
    • Before this change, np.asarray("8 16", dtype=float) raised whenever qt.py passed the parent text, so the calculator never opened for list or range values.
    • The switch to layout="supergui" is backed by the new tf_cycle_calc geometry case and its MATLAB reference recording.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

  • The new GUI test runs the real child dialog through submission for empty, list, range and invalid parent values. It checks the frequencies and cycles written back to the parent.
  • The tf_cycle_calc geometry case covers the layout change.

EEGLAB parity notes

None. The change only affects how the dialog fills its initial field and how it lays out its controls. The numbers tf_cycle_calc produces are unchanged, so no MATLAB reference run is required.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I posted this review here instead of as a separate gh pr comment because this session couldn't write the comment body to a temporary file.

@arnodelorme
arnodelorme changed the base branch from agent/issue-910-rejtrend to develop December 1, 2026 04:17
@arnodelorme
arnodelorme merged commit 10de8d8 into develop Dec 1, 2026
5 checks passed
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.

[GUI] Match the tf_cycle_calc dialog to EEGLAB

1 participant