'Create the event channel.'

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

    n_dropped = (len(events[:, 0]) - len(set(events[:, 0])))
    if (n_dropped > 0):
        warn((str(n_dropped) + '    events    will    be    dropped    because    they    occur    on    the    same    time    sample    as    another    event.    `mne.io.Raw`    objects    store    events    on    an    event    channel,    which    cannot    represent    two    events    on    the    same    sample.    You    can    extract    the    original    event    structure    using    `mne.io.eeglab.read_events_eeglab`.    Then,    you    can    e.g.    subset    the    extracted    events    for    constructing    epochs.'))
    if (n_samples is None):
        n_samples = ((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_samples)
