Equaling epochs based on index position

  • MNE version: 1.9
  • operating system: e.g. macOS 15

The PI wants to “equalize” a set of epoch events from 2 files based on their index position after running auto reject. For example, say after autoreject I look in epoch.drop_log() and I see for file 1

(‘AUTOREJECT’,), (), (), (), ()

Running auto reject on file 2 yields

(), (), (), (), (‘AUTOREJECT’,)

So now I want to drop event 5 in file 1 and event 1 in file 2 so that both files only contain events 2-4. Is there way to do this? Looks like mne.epochs.equalize_epoch_counts uses different algorithms to equalize counts but not a 1-1 relation. Thanks for the help.

p.s. I am also thinking it would be great to be able to mark something like USER on the epoch.drop_log ot indicate what I did and where. Is this also possible?

Is this the way to go?