I am already familiar with loading the BIDS data events using:
import pandas as pd
import mne
from mne_bids import *
bids_path = BIDSPath(
root="~/",
subject="01",
task="TASK",
datatype="eeg"
)
raw = read_raw_bids(bids_path)
events, event_id = mne.events_from_annotations(raw)
But, when I compare events with the content of *_events.tsv.
events_df = pd.read_csv("~/sub-01/eeg/sub-01_task-TASK_events.tsv", sep="\t")
I notice that the trigger values have all been reset in events and event_id, thus not matching what the data frame events_df shows me (the “true” trigger values, at column value).
I guess this is normal and wanted, since event_id stays consistent, but isn’t there an MNE BIDS function that would allow one to directly read what is written inside the *_events.tsv instead of having to pass through the annotations? Or does one have to read it manually in order to not have the trigger values reset?
FYI:
- MNE version: 1.11.0
- Operating system: Ubuntu 24.04.4 LTS