Repository navigation
[Tests] Add half-count tie test for 2-D trimmed channel scores - #636
Conversation
Cover the 2-D trim at n=5, 15, and 25, where ten percent of the count is a half integer and MATLAB rounding keeps a different range than Python round. Co-authored-by: Suraj Ranganath <[email protected]>
There was a problem hiding this comment.
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 finished @suraj-ranganath's task in 51s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. EEGLAB parity notesI checked the expected ranges against upstream minind = max(round(length(tmpkurt)*0.1),1);
maxind = round(length(tmpkurt)-round(length(tmpkurt)*0.1));
I did not run the test: Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
Add a parametrized test for the 2-D trimmed channel score path at n=5, 15, and 25, where n*0.1 is a half count. Expected kept ranges are 1:4, 2:13, and 3:22, and the n=5 and n=25 cases fail if MATLAB half-away-from-zero rounding is replaced by Python round.
Fixes #570
Supersedes #571