FIX: bug in periodic_generator event generator
bad_epochs.sliding_window_var has been deprecated