FIX: bug in periodic_generator event gen.
FIX: bug in bad_epochs.sliding_window