I am trying to use an events stream from an xdf file in mne. I was able to import the xdf and create two arrays in python. One array includes lists of markup-language lines describing each event while the second array includes the corresponding timestamps.
I did edit the timestamps so that they match the timing of the EEG sampling rate already imported into mne. e.g. timestamp of first event is 5.34 seconds (with respect to time zero in mne) and so on.
I am wondering if there is a way to add these events to the raw file containing the EEG data.