Repository navigation
[docs] Correct parity-matrix test notes to match the tests - #613
Conversation
Name the asserting tests, and separate provenance-linked smoke calls from Python behavioral checks and live MATLAB comparisons. 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.
|
Reviewing PR #613
|
|
Claude finished @suraj-ranganath's task in 1m 57s —— View job Code review
BlockingNone. Important
Nits
Test gapsNone. No behavior changes, so no new tests are needed. EEGLAB parity notesNone. No runtime or EEGLAB-ported code changed, so the MATLAB reference run in AGENTS.md is not required. What I checked against the cited tests:
The new evidence-categories paragraph in |
| "gui" | ||
| ], | ||
| "test_notes": "Covered by the rejchanspec original-workflow reference test and the pop_rejchanspec history test in tests/test_phase7_long_tail_helpers.py." | ||
| "test_notes": "tests/test_phase7_long_tail_helpers.py::test_reference_rejchanspec_original_workflow is a provenance-linked GUI smoke call of six option combinations and asserts no rejected channels. test_pop_rejchanspec_rejects_spectral_outlier_and_returns_history is a Python behavioral test: it asserts the outlier channel is removed (nbchan 2, labels Ch1 and Ch3) and that the history command starts with pop_rejchanspec." |
There was a problem hiding this comment.
Important: this note says the test "asserts no rejected channels", but test_reference_rejchanspec_original_workflow asserts nothing. Each of the six pop_rejchanspec calls uses nargout=0 and throws its result away, and the loop only closes the histogram figure:
eegprep/tests/test_phase7_long_tail_helpers.py
Lines 376 to 397 in 81c59e5
The PR exists to make these notes match their tests, so this sentence brings back the same kind of overclaim.
| "test_notes": "tests/test_phase7_long_tail_helpers.py::test_reference_rejchanspec_original_workflow is a provenance-linked GUI smoke call of six option combinations and asserts no rejected channels. test_pop_rejchanspec_rejects_spectral_outlier_and_returns_history is a Python behavioral test: it asserts the outlier channel is removed (nbchan 2, labels Ch1 and Ch3) and that the history command starts with pop_rejchanspec." | |
| "test_notes": "tests/test_phase7_long_tail_helpers.py::test_reference_rejchanspec_original_workflow is a provenance-linked GUI smoke call of six option combinations and asserts nothing about the result. test_pop_rejchanspec_rejects_spectral_outlier_and_returns_history is a Python behavioral test: it asserts the outlier channel is removed (nbchan 2, labels Ch1 and Ch3) and that the history command starts with pop_rejchanspec." |
| "file_channel" | ||
| ], | ||
| "test_notes": "Covered by the pop_chancenter reference cases (empty center, with and without omitchans, recorded calls), 1-based omit indices, console history, and GUI cancel path in tests/test_phase2_file_channel_location.py; adjacent pop_chanedit coverage remains in tests/test_phase1b_file_edit_pop_functions.py." | ||
| "test_notes": "tests/test_phase2_file_channel_location.py::test_reference_pop_chancenter_empty_center asserts the fitted center is within 0.11 of the origin. test_reference_pop_chancenter_no_omitchans and test_reference_pop_chancenter_with_omitchans assert translated coordinates against convertlocs. Those three compare recorded expectations through eeglab_backend and become a live MATLAB comparison only with --eeglab-backend=matlab. test_reference_pop_chancenter_nine_recorded_location_calls is a provenance-linked smoke call of nine centers and omit lists and asserts nothing. Python behavioral tests: test_pop_chancenter_uses_one_based_omit_indices_and_console_return_shape asserts omit index 4 leaves Cz in place and the history command uses [4]; test_pop_chancenter_gui_cancel_path_returns_original_without_history asserts gui=True with no submitted result returns the same EEG and an empty command; test_console_pop_chancenter_updates_session_history_and_current_dataset asserts CURRENTSET [1] and the same history command." |
There was a problem hiding this comment.
Nit: "asserts omit index 4 leaves Cz in place" is literally true, but it reads as if the test checks 1-based omit handling. It doesn't. The test passes center=[0, 0, 0], which moves no channel at all, so Cz stays put whether index 4 is omitted, off by one, or ignored:
eegprep/tests/test_phase2_file_channel_location.py
Lines 566 to 574 in 81c59e5
The only part that checks 1-based indexing is the history string [4]. Suggested fix: reword the note to "asserts the history command records omit index [4]; the zero center leaves the coordinate assertion unable to distinguish omitted channels." A better fix is a separate follow-up that strengthens the test to use a non-zero center such as [1, -1, 0] and assert channels 1 to 3 shift while channel 4 does not.
The spectral-rejection reference call checks no result, and the channel-center omit test only records index [4] in history because its center is the origin. Co-authored-by: Suraj Ranganath <[email protected]>
|
Claude finished @suraj-ranganath's task in 51s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. No behavior changed. EEGLAB parity notesNone. No runtime or EEGLAB-ported code changed, so the MATLAB reference run in AGENTS.md is not required. What I checked against the cited tests:
I could not run |

Rewrite parity-matrix test_notes so each citation names the test and what it asserts, and separate provenance-linked smoke calls, Python behavioral tests, and live MATLAB comparisons. The Sphinx matrix section now states that these notes are not unconditional MATLAB-parity proof.
Fixes #433