Or making it more flexible without more code, `short_event_warning : int` as n_samples below which a warning should be issued