You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_mneio: place annotations relative to the first imported sample #838
🤖 On the saved FIF regression file, first_samp is 100, the rate is 100 Hz and an annotation begins 0.2 s into the data. EEGPrep develop records latency 121. The correct 1-based latency is 21. This affects MNE paths that share mne_raw_to_eeg. The comparison used MNE 1.12.1 and a real save/read round trip. The regression in #813 uses the same input.
Earlier issue: #735, pop_mneio, formerly pop_biosig (File > Import data > BDF, EDF and MNE-IO interface): graphical and numerical parity with EEGLAB
Reproduce: MNE raw.annotations.onset is measured from first_samp=0 (includes raw.first_time) both with and without meas_date, so mne_raw_to_eeg adds first_samp samples to every latency.
Regression test (FIF save/read round trip, first_samp=100, 100 Hz, onset 0.2 s → latency 21); failed with 121 before the fix
Activity
claude commentedon Nov 29, 2026
🤖 Plan:
raw.annotations.onsetis measured fromfirst_samp=0(includesraw.first_time) both with and withoutmeas_date, somne_raw_to_eegaddsfirst_sampsamples to every latency.raw.first_timefrom onsets in_file_io.pymne_raw_to_eeg