Repository navigation
[IO] Place MNE annotations relative to the first imported sample - #841
claude[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <[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 @claude[bot]'s task in 58s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. The new FIF round-trip test fails on the old formula (121) and passes on the new one (21). It goes through Side effect worth mentioning in the PR description: EEGLAB parity notesNone. EEGLAB event latencies are 1-based relative to the first sample of Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I couldn't run the tests in this job because the job's permissions don't allow |
|
Review (Claude Fable): needs more work
DetailsIs the fix itself right? Yes. I compared
When first_samp is 0 the new line gives the same bits as the old one, so ordinary EDF, BDF, GDF and MFF imports do not change. Side effect not written in the pull request body. Small numerical note, not blocking. On the test file the line returns 20.999999999999996, not 21, which is why the test needs The remaining defect. Tests I ran (worktree,
CI. All jobs pass except "Test Python 3.12 on windows-latest": Other open pull requests. No conflict with develop, #845 (same source file) or #836 (same test file). #797 merges cleanly in the test file. Its only conflict is in Size and body. 2 source lines and 11 test lines: minimal. No window changes, so no captures are needed. The body gives the numbers as text (121 before, 21 after) and no figure. There is no MATLAB reference run, which seems fair here: the line is MNE only and has no EEGLAB counterpart. — orchestrator review |
|
Closed at Arno's request (November 28, 2026): the same fix already landed on develop inside #842. The separate problem of eeg_mne2eeg placing an event at latency 121 in a 100 sample dataset is not covered by this pull request. — orchestrator |
mne_raw_to_eeg converted annotation onsets to latencies without removing raw.first_time, so FIF files with a nonzero first_samp got events shifted by first_samp samples (latency 121 instead of 21). Subtract raw.first_time before converting and add a FIF round-trip regression test.
Fixes #838
🤖 Generated with Claude Code