Skip to content

[GUI] Match the ERP image form and its default time limits - #1006

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-875-plot-erpimage
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-875-plot-erpimage

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Match the ERP image form and its default time limits. The epoched window measured 618 px high in MATLAB, 917 px before the fix and 618 px afterward. Stack base is #1001.

Epoched

Displacement

Erp image values

Across 1 native openings, the largest vertical control offset was 0.48 px (target 1 px). Numerical comparison of erp image values: 4/4 measured cases within tolerance.

EEGLAB 5e0be870, EEGPrep after 39de36ca, clean Linux checkouts. Part of #875.

Fixes #1007.

Full inventory report for the project team. pop_erpimage (p. 36). 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 1m 2s —— View job


Code review

  • Overall assessment: Looks good. I checked the switch to layout="supergui", the new limtime default text, the parsed-value comparison in _dialog_limits, the geometry case and reference recording, and the updated GUI tests and docs.
  • Highest-risk area: the limtime text for epochs whose limits are whole milliseconds. Only the non-integer branch is checked against MATLAB.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

  • src/eegprep/functions/popfunc/pop_erpimage.py _epoch_limits_text: the non-integer branch reproduces MATLAB's num2str output: the recorded reference holds "-1000 1992.1875". The integer branch hard-codes two spaces (" ".join(...)). MATLAB's num2str instead right-aligns integers in fixed-width columns, so epochs like [-200 800] ms or [-1000 2000] ms may get different spacing in EEGLAB. I haven't checked this against MATLAB. It only changes how the field looks. _dialog_limits now compares the parsed numbers, so the default is still detected correctly. If exact text parity matters, record one integer-limit epoch in the geometry reference and format to match.

Test gaps

None.

EEGLAB parity notes

  • _dialog_limits now compares the parsed numbers instead of the raw strings. With the wider MATLAB-style spacing, a string comparison would have broken. As a side effect, typing the full epoch limits in any spacing is treated as "unchanged" and leaves limits(1:2) as NaN. The plotted window is the same either way.

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

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.

pop_erpimage: Match the ERP image form and its default time limits

1 participant