def _read_events(fid, info):
 events = np.zeros([info['n_events'], (info['n_segments'] * info['n_samples'])])
 fid.seek((36 + (info['n_events'] * 4)), 0)
 for si in range(info['n_samples']):
  fid.seek((info['n_channels'] * info['dtype'].itemsize), 1)
  events[:, si] = np.fromfile(fid, info['dtype'], info['n_events'])
 return events

def _read_events ( fid , info ) : events = np . zeros ( [ info [ 'n_events' ] , ( info [ 'n_segments' ] * info [ 'n_samples' ] ) ] ) fid . seek ( ( 36 + ( info [ 'n_events' ] * 4 ) ) , 0 ) for si in range ( info [ 'n_samples' ] ) : fid . seek ( ( info [ 'n_channels' ] * info [ 'dtype' ] . itemsize ) , 1 ) events [ : , si ] = np . fromfile ( fid , info [ 'dtype' ] , info [ 'n_events' ] ) return events
read events .