When I plot error with epochs.plot() epochs are numbered starting from 1, when plot ICA sources with ica.plot_sources(epochs) epochs numbering starts from 0.
This might be error prone, I spent last hour trying to debug some unexpected results because of this.
@danieltomasz Are you sure the first epoch wasn’t dropped when you plotted your epochs? We generally start indexing everything at zero, including epochs.
@richard thanks for a quickly reply, you are right that the first epoch was dropped.
I had set reject by annotation to reject_by_annotation=True when creating epochs and this was proabably reason of removing epoch nr 0.
is there a way to reset numbering of epochs after creating them?
This is confusing, like my orginal case with ICA or with autoreject as well.
as a step, I am running autoreject to find bad epochs
in plot bad epochs are starting from 7, 19 …. (because now the 0 indexed epoch in Epochs has number 1)
I my pipeline I manually check the bad epochs from autoreject and sometimes remove more bad epochs before ica, having this double numbering may lead me into confusion/errors (however I can understand why this is happening)