Save annotations to EDF file

Hello,

I want to create annotations for an edf file.
I am using mne.Annotations, raw.set_annotations().
In the end, I want to save the edf file with the annotations. However, using the command β€œraw.save()”, I save it in .fif format.
Is there any way to save it as an edf file?

Thanks!

Yes, you can use raw.export().

1 Like

have a look at :

https://mne.tools/stable/generated/mne.export.export_raw.html

but I am not sure it supports annotations.

Alex

1 Like