Hello, I am traying to get the annotations form my signals, the eeg device export .edf, we set four annotations as [1, 2, 3, 4]. In the moment to get the annotatons by code, nothing get, raw_data_.duration array(, dtype=float64)
edf_dir = '/content/drive/MyDrive/Semillero EEG/Senales-prueba-piloto'
edf_files = [f for f in os.listdir(edf_dir) if f.endswith('.edf')]
for i in edf_files:
#raw_data = mne.io.read_raw_edf(os.path.join(edf_dir, i), preload=True)
raw_data_ = mne.read_annotations(os.path.join(edf_dir, i))
raw_data.set_annotations(raw_data_, emit_warning=False)
Are you sure this is an EDF+ file where events are marked as annotations? Or could this be an old-style EDF file where there is a STATUS channel encoding the events? In the latter case, use mne.find_events(raw_data) to get them.
I took the signal and made the annotations by myself while performing the test, we donβt use any other channel. However, this equipment is easy cadwell III, an old one, in this case I will use your suggestion and then let you know.
Thank you in advance.