I have created the annotations for 4 labels using this code :
and creates the events, but still events and annotations are empty list :
and the data compatibility is okay : ]
I have created the annotations for 4 labels using this code :
and creates the events, but still events and annotations are empty list :
and the data compatibility is okay : ]
You can add Annotations objects like this:
combined_annotations = (
annotations_MSE + annotations_wake + annotations_MSEc + annotations_ED
)
Using this method (and the remainder of your script), can you then show the output of raw_01.annotations?
but seems like the sub annotations are empty

is there any wrong in how i create them?
Then maybe labels_01 do not contain what you expect? What’s the value of labels_01 and np.where(labels_01 == 1)?

labels_01 is a list of lists , the sub lists correspond to each sample from eeg_01 and contains numbers from this [0, 1, 2, 3]. each one corresponds to a label.
but It doesnt make sense that I got again an empty list when explore : np.where(labels_O1 == 1), and it is the same output for other labels [0, 2, 3]
If labels_01 is a list of lists, labels_01 == 1 will never be True. I don’t know how exactly your labels are structured, but you need to pass valid onsets to mne.Annotations().