def _set_window_time(slices, times):
 t_idx_ = [t[(-1)] for t in slices]
 return times[t_idx_]

def _set_window_time ( slices , times ) : t_idx_ = [ t [ ( - 1 ) ] for t in slices ] return times [ t_idx_ ]
aux function to define time as the last training time point .