Repository navigation
Establish faithful MATLAB reference-test infrastructure - #418
Conversation
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
🤖 Phase 1 specification and verification: tests/conftest.py requires explicit backend selection and rejects unconverted direct-Python provenance tests in MATLAB mode. tests/eeglab_tests/backend.py:28 preserves numeric classes, shapes, nested structs and cells through independent MAT-file transport, including consecutive EEG calls. tools/eeglab_test_port_audit.py:91 discovers Test-attributed methods and unwrapped workflows; collection includes opt-in contracts without executing them. The transport keeps struct arrays distinct from cells: if value.dtype.names and value.size:
decoded = np.empty(value.shape, dtype=value.dtype)
for index in np.ndindex(value.shape):
for field in value.dtype.names:
decoded[field][index] = _decode(value[field][index], typed[field][index])
if value.shape == (1, 1):
return {field: decoded[field][0, 0] for field in value.dtype.names}
return decoded
if value.dtype == object:
decoded = np.empty(value.shape, dtype=object)
for index in np.ndindex(value.shape):
decoded[index] = _decode(value[index], typed[index])
return decodedValidation: 73 focused tests passed on MATLAB R2026a/Python3.12, including49 live MATLAB cases and guard tests covering missing dependencies, no fallback, argument/output counts and chained EEG structures. All seven code/test/documentation CI jobs pass, including all four OS/Python test jobs. Claude review failed immediately after initialization with is_error:true and zero model usage; its log does not expose the underlying provider reason. No review bypass or workflow change was made. The independent inventory exposes 813 source definitions, 812 provenance matches and one missing standalone IRLS workflow. These are source-accounting counts, not behavioral validation. No EEGPrep production files changed. Existing-test fidelity corrections remain the next phase; this draft establishes the runner and honest inventory only. |
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 encountered an error after 0s —— View job I'll analyze this and get back to you. |
Add explicit MATLAB and Python test backends with independently validated MAT-file transport, without changing EEGPrep capabilities. Correct source-test discovery to include class tests and unwrapped workflows, preserve opt-in tests in the provenance audit, and document the strict MATLAB validation lane.