def _read_kit_data(self):
    'Read epochs data.\n\n        Returns\n        -------\n        data : array, [channels x samples]\n           the data matrix (channels x samples).\n        times : array, [samples]\n            returns the time values corresponding to the samples.\n        '
    info = self._raw_extras[0]
    epoch_length = info['frame_length']
    n_epochs = info['n_epochs']
    n_samples = info['n_samples']
    filename = info['filename']
    dtype = info['dtype']
    nchan = info['nchan']
    with open(filename, 'rb', buffering=0) as fid:
        fid.seek(info['dirs'][KIT.DIR_INDEX_RAW_DATA]['offset'])
        count = (n_samples * nchan)
        data = np.fromfile(fid, dtype=dtype, count=count)
    data = data.reshape((n_samples, nchan)).T
    data = (data * info['conv_factor'])
    data = data.reshape((nchan, n_epochs, epoch_length))
    data = data.transpose((1, 0, 2))
    return data
Read epochs data.

Returns
-------
data : array, [channels x samples]
   the data matrix (channels x samples).
times : array, [samples]
    returns the time values corresponding to the samples.
def _read_kit_data(self):
    'Read epochs data.\n\n        Returns\n        -------\n        data : array, [channels x samples]\n           the data matrix (channels x samples).\n        times : array, [samples]\n            returns the time values corresponding to the samples.\n        '
    info = self._raw_extras[0]
    epoch_length = info['frame_length']
    n_epochs = info['n_epochs']
    n_samples = info['n_samples']
    filename = info['filename']
    dtype = info['dtype']
    nchan = info['nchan']
    with open(filename, 'rb', buffering=0) as fid:
        fid.seek(info['dirs'][KIT.DIR_INDEX_RAW_DATA]['offset'])
        count = (n_samples * nchan)
        data = np.fromfile(fid, dtype=dtype, count=count)
    data = data.reshape((n_samples, nchan)).T
    data = (data * info['conv_factor'])
    data = data.reshape((nchan, n_epochs, epoch_length))
    data = data.transpose((1, 0, 2))
    return data