Repository navigation
Preserve mixed MATLAB field types and strengthen conversion tests - #437
Conversation
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
🤖 The original tests passed despite py2mat converting numeric 42 to text; strengthened MAT-file checks failed on three record orderings before the fix. Deliberately replacing epoched conversion with a raised error now produces a failure rather than a skip, and deliberately stringifying the mixed fields fails all five type subtests; both temporary faults were removed. MATLAB R2026a loaded all five corrected MAT-file cases and matched native structs exactly in value and class (int64/double/char as appropriate). Using EEGLAB 420769355b4e754628edfb43da2eb02c72fb8333 to load and save sample_data/eeglab_data_epochs_ica.set, MNE's native-export result and EEGPrep's conversion had identical data (80 epochs × 32 channels × 384 samples), events, times, channel names, and event IDs. EEGLAB's explicit mixed-event-type normalization is distinct from the generic transport preservation checked here.
|
|
🤖 Final CI at 8f239b3: Linux Python 3.12/3.13, macOS/Windows Python 3.12, pre-commit, Ruff/ty, and documentation all passed. The automated review failed immediately after initialization with is_error:true and zero model usage, without code findings or an underlying diagnostic cause; tracked in existing Beads issue eegprep-aug. PR remains a draft. |
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. |
Make epoched EEG-to-MNE regressions fail instead of skip, and verify mixed-field MATLAB types and values through MAT-file serialization. Fix the exposed py2mat bug that converted numeric fields to text when a later record contained a string, preserving missing-value handling and documenting transport semantics. Validate both tests with deliberate faults and compare against MATLAB and EEGLAB exports.
Fixes #434