def shift_time_events(events, ids, tshift, sfreq):
 events = events.copy()
 for ii in ids:
  events[((events[:, 2] == ii), 0)] += int((tshift * sfreq))
 return events

def shift_time_events ( events , ids , tshift , sfreq ) : events = events . copy ( ) for ii in ids : events [ ( ( events [ : , 2 ] == ii ) , 0 ) ] += int ( ( tshift * sfreq ) ) return events
shift an event .