'Read a segment of data from a file.'

def _read_segment_file(self, data, idx, fi, start, stop, cals, mult):

    egi_info = self._raw_extras[fi]
    dtype = egi_info['dtype']
    n_chan_read = (egi_info['n_channels'] + egi_info['n_events'])
    offset = (36 + (egi_info['n_events'] * 4))
    _read_segments_file(self, data, idx, fi, start, stop, cals, mult, dtype=dtype, n_channels=n_chan_read, offset=offset, trigger_ch=self._new_trigger)
