'Create the event channel.'

def _create_event_ch(self, events, n_samp=None):

    if (n_samp is None):
        n_samp = ((self.last_samp - self.first_samp) + 1)
    events = np.array(events, int)
    if ((events.ndim != 2) or (events.shape[1] != 3)):
        raise ValueError('[n_events    x    3]    shaped    array    required')
    self._event_ch = _synthesize_stim_channel(events, n_samp)
    self._events = events
    if self.preload:
        self._data[(-1)] = self._event_ch
