@kazemakase take a look at how `raw.resample` works, it treats the stim channel differently from all the other channels. Knowing the characteristics of the signal (it's composed entirely of step functions), you should just use zero-order hold interpolation.