class_docstr: Raw object from EGI simple binary file.
class_docstr_tok: ["Raw","object","from","EGI","simple","binary","file","."]
docstr: Read a segment of data from a file.
docstr_tok: ["Read","a","segment","of","data","from","a","file","."]
code: def _read_segment_file(self, data, idx, fi, start, stop, cals, mult):
      """Read a segment of data from a file."""
      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
      trigger_ch = egi_info["new_trigger"]
      _read_segments_file(
          self,
          data,
          idx,
          fi,
          start,
          stop,
          cals,
          mult,
          dtype=dtype,
          n_channels=n_chan_read,
          offset=offset,
          trigger_ch=trigger_ch,
      )
  
file_path: mne-python/mne/io/egi/egi.py
imports: import datetime
  import time
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _create_chs, _read_segments_file
  from ...utils import _check_fname, _validate_type, logger, verbose, warn
  from ..base import BaseRaw
  from .egimff import _read_raw_egi_mff
  from .events import _combine_triggers
label_desc: Use image node_id 2 for calling the RawEGI obj's underlying member method code with example usage: obj._read_segment_file(data, idx, fi, start, stop, cals, mult) without return types