Skip to content

Time-frequency procedure: the slow-run warning scales with the request - #723

Merged
neuromechanist merged 2 commits into
developfrom
feature/issue-721-tf-warning-conditional
Nov 11, 2026
Merged

neuromechanist merged 2 commits into
developfrom
feature/issue-721-tf-warning-conditional

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #722, at the maintainer's direction (2026-11-11). The time-frequency plan's slow-run warning now scales with the request.
#722 measured the transform at ERP CORE's size (about 80 epochs per condition, 2 conditions, 19 frequencies, 250 Hz) at a median of 0.033 s in Pyodide, so "will likely take a long time" on every run would mislead the reader.

What the plan says now, before approval and again in step 3's detail, every time:

  • the code runs in the reader's browser, on a single processor with limited compute and memory;
  • a request is bigger than ERP CORE's when it has more than about 80 epochs in a condition, a rate above 250 Hz, or a window or frequency range the reader widened;
  • a request no bigger than that is told the transform took well under a second in testing, and that reading the recording comes on top of it (the read was not timed);
  • a bigger one is told step 3 can take a long time;
  • it never promises a long wait for the first kind, nor a quick run for the second;
  • the ways to shorten it, unchanged: fewer frequencies, fewer epochs, or a shorter window.

The old closing line, "When step 3 runs, say again that it may take a while", is removed on purpose: at ERP CORE's size it would be wrong. The warning in step 3's detail stays.

The CHANGELOG entry from #722 is updated to match.
No code changes; the procedure's code blocks are unchanged.

Refs #721

Tests

  • pytest tests/test_assistants tests/test_core/test_config tests/test_scripts tests/test_frontend (Python 3.12): 1488 passed, 16 skipped (round 1 fixes: tests/test_assistants and tests/test_core/test_config, 1156 passed)
  • ruff check and ruff format --check on the changed test file: clean
  • The renamed test pins the new phrases, checks that the old "likely take a long time" is gone, and checks that the warning comes before the numbered steps.

The transform at ERP CORE's size (80 epochs per condition, 19 frequencies, 250 Hz) measured
0.033 s in Pyodide, so the plan no longer says every run will likely take a long time. It says
step 3 can take a long time with many epochs, many frequencies, a long window or a high rate,
still before approval and in step 3's detail, with the same ways to shorten it.

Tested: tests/test_assistants, test_core/test_config, test_scripts, test_frontend (1488 passed); ruff clean.
…RE, drop the unmeasured read claim; test pins every time

Tested: tests/test_assistants, tests/test_core/test_config (1156 passed); ruff clean.
@neuromechanist

Copy link
Copy Markdown
Member Author

Review round 1 (Sonnet code reviewer): outcomes

No critical findings, 3 important, 4 suggestions; all fixed in the round 1 commit.

# Severity Finding Outcome
1 Important "Most of the wait is the read" was not measured; #722 timed only the compute block Fixed: claim dropped in the document and CHANGELOG. The reader is told the read comes on top, and the PR body says it was not timed.
2 Important The small case was phrased only as prohibitions; "Say so" had no clear referent Fixed: one sentence for what a request no bigger than ERP CORE's is told and one for what a bigger one is told; "Put that warning" names it
3 Important "No bigger than that" was undefined in terms the model has Fixed: more than about 80 epochs in a condition, a rate above 250 Hz, or a window or frequency range the reader widened; any one makes it bigger
4 Suggestion The test did not pin "every time"; a long pinned phrase was brittle; the old wording was checked only in the plan Fixed: "every time" pinned and used for the before-the-steps check; phrases split; the old wording is checked across the whole document
5 Suggestion CHANGELOG did not say where 0.033 s was measured Fixed: "in Pyodide under Bun on a laptop, not in a browser"
6 Suggestion One long line in the document Fixed: semantic line breaks
7 Suggestion The removal of the step 3 runtime reminder was not stated Fixed: the PR body says it was removed on purpose

@neuromechanist

Copy link
Copy Markdown
Member Author

Review round 2 (Sonnet code reviewer): outcomes

No findings. All 7 round 1 findings are confirmed resolved, and the fixes introduced nothing new.
Two cosmetic notes need no action: "about 80" leaves a small margin near 85 epochs, and one pinned phrase is case-sensitive.

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