eye-eeg icon indicating copy to clipboard operation
eye-eeg copied to clipboard

Issue with epoching after flagging bad data using pop_rej_eyecontin()

Open Dyschezia opened this issue 3 months ago • 2 comments

Hi. There seems to be an issue with epoching data after marking (but not removing) bad ET on the continuous data. The duration of the bad_ET event seems to not be changed in the epoching process, leading to a situation where a long bad_ET event that started in one epoch will spill on the next ones according to the new time axis, not taking into account whether originally it was part of these events. In the attached images, the first shows the bad_ET event in the continuous EEG: it starts at the end of the trial and continues into a break between trials. The second image shows the epoched data: the same bad_ET event now lasts for the same duration (as confirmed by checking its duration in EEG.event), but this time including the trials following the one it started in (and not the break, which was removed while epoching).

bad_ET1 bad_ET2

This could also be a bug in EEGLAB and not the eye-eeg plugin, I did not check whether it happens with other events.

Thank you!

Dyschezia avatar Oct 31 '24 11:10 Dyschezia