We typically do timings in "time" instead of samples, so I think it would be better to convert min_duration in seconds (or milliseconds if you prefer) using something like `np.round(raw.info['sfreq'] * min_duration)`.