@verbose
def __init__(self, input_fname, events, event_id=None, tmin=0, baseline=None, reject=None, flat=None, reject_tmin=None, reject_tmax=None, mrk=None, elp=None, hsp=None, allow_unknown_format=False, standardize_names=None, verbose=None):
    if isinstance(events, str):
        events = read_events(events)
    logger.info(('Extracting KIT Parameters from %s...' % input_fname))
    input_fname = op.abspath(input_fname)
    (self.info, kit_info) = get_kit_info(input_fname, allow_unknown_format, standardize_names)
    kit_info.update(filename=input_fname)
    self._raw_extras = [kit_info]
    self._filenames = []
    if (len(events) != self._raw_extras[0]['n_epochs']):
        raise ValueError('Event list does not match number of epochs.')
    if (self._raw_extras[0]['acq_type'] == KIT.EPOCHS):
        self._raw_extras[0]['data_length'] = KIT.INT
    else:
        raise TypeError('SQD file contains raw data, not epochs or average. Wrong reader.')
    if (event_id is None):
        event_id = {str(e): int(e) for e in np.unique(events[:, 2])}
    for (key, val) in event_id.items():
        if (val not in events[:, 2]):
            raise ValueError(('No matching events found for %s (event id %i)' % (key, val)))
    data = self._read_kit_data()
    assert (data.shape == (self._raw_extras[0]['n_epochs'], self.info['nchan'], self._raw_extras[0]['frame_length']))
    tmax = (((data.shape[2] - 1) / self.info['sfreq']) + tmin)
    super(EpochsKIT, self).__init__(self.info, data, events, event_id, tmin, tmax, baseline, reject=reject, flat=flat, reject_tmin=reject_tmin, reject_tmax=reject_tmax, filename=input_fname, verbose=verbose)
    self.info = _call_digitization(info=self.info, mrk=mrk, elp=elp, hsp=hsp, kit_info=kit_info)
    logger.info('Ready.')
@verbose
def __init__(self, input_fname, events, event_id=None, tmin=0, baseline=None, reject=None, flat=None, reject_tmin=None, reject_tmax=None, mrk=None, elp=None, hsp=None, allow_unknown_format=False, standardize_names=None, verbose=None):
    if isinstance(events, str):
        events = read_events(events)
    logger.info(('Extracting KIT Parameters from %s...' % input_fname))
    input_fname = op.abspath(input_fname)
    (self.info, kit_info) = get_kit_info(input_fname, allow_unknown_format, standardize_names)
    kit_info.update(filename=input_fname)
    self._raw_extras = [kit_info]
    self._filenames = []
    if (len(events) != self._raw_extras[0]['n_epochs']):
        raise ValueError('Event list does not match number of epochs.')
    if (self._raw_extras[0]['acq_type'] == KIT.EPOCHS):
        self._raw_extras[0]['data_length'] = KIT.INT
    else:
        raise TypeError('SQD file contains raw data, not epochs or average. Wrong reader.')
    if (event_id is None):
        event_id = {str(e): int(e) for e in np.unique(events[:, 2])}
    for (key, val) in event_id.items():
        if (val not in events[:, 2]):
            raise ValueError(('No matching events found for %s (event id %i)' % (key, val)))
    data = self._read_kit_data()
    assert (data.shape == (self._raw_extras[0]['n_epochs'], self.info['nchan'], self._raw_extras[0]['frame_length']))
    tmax = (((data.shape[2] - 1) / self.info['sfreq']) + tmin)
    super(EpochsKIT, self).__init__(self.info, data, events, event_id, tmin, tmax, baseline, reject=reject, flat=flat, reject_tmin=reject_tmin, reject_tmax=reject_tmax, filename=input_fname, verbose=verbose)
    self.info = _call_digitization(info=self.info, mrk=mrk, elp=elp, hsp=hsp, kit_info=kit_info)
    logger.info('Ready.')