lina-usc / pylossless

🧠 EEG Processing pipeline that annotates continuous data
https://pylossless.readthedocs.io/en/latest/
MIT License
18 stars 8 forks source link

Concatenate Overlapping `mne.annotations` #75

Closed scott-huberty closed 9 months ago

scott-huberty commented 1 year ago

In cases where there are multiple subsequent Epochs that are all annotated with the same pylossless flag (i.e. flag_ch_sd_epoch), or where there is a small gap annotation (i.e. flag_ch_sd_epoch - gap - flag_ch_sd_epoch ), I think we can concatenate these annotations to be a single annotation.

image

This will make adjusting these annotations in the qcr dashboard easier, and makes reading the annotation labels easier.

This shouldn't be too hard. Probably similar to the code we wrote for overlapping eyetracking annotations in MNE.

christian-oreilly commented 1 year ago

Sounds reasonable to me...