class_docstr: Raw object from a Hitachi fNIRS file.
  
  Parameters
  ----------
  %(hitachi_fname)s
  %(preload)s
  %(verbose)s
  
  See Also
  --------
  mne.io.Raw : Documentation of attributes and methods.
  
  Notes
  -----
  %(hitachi_notes)s
class_docstr_tok: ["Raw","object","from","a","Hitachi","fNIRS","file",".","Parameters","--","--","--","--","--","%","(","hitachi_fname",")","s","%","(","preload",")","s","%","(","verbose",")","s","See","Also","--","--","--","--","mne.io.Raw",":","Documentation","of","attributes","and","methods",".","Notes","--","--","-","%","(","hitachi_notes",")","s"]
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."""
      this_data = list()
      for this_probe in self._raw_extras[fi]["probes"]:
          this_data.append(
              _read_csv_rows_cols(
                  this_probe["fname"],
                  start,
                  stop,
                  this_probe["keep_mask"],
                  this_probe["bounds"],
                  sep=",",
                  replace=lambda x: x.replace("\r", "\n")
                  .replace("\n\n", "\n")
                  .replace("\n", ",")
                  .replace(":", ""),
              ).T
          )
      this_data = np.concatenate(this_data, axis=0)
      _mult_cal_one(data, this_data, idx, cals, mult)
      return data
  
file_path: mne-python/mne/io/hitachi/hitachi.py
imports: import datetime
  import re
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _merge_info, create_info
  from ..._fiff.utils import _mult_cal_one
  from ...utils import _check_fname, _check_option, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from ..nirx.nirx import _read_csv_rows_cols
label_desc: Use image node_id 2 for calling the RawHitachi obj's underlying member method code with example usage: obj._read_segment_file(data, idx, fi, start, stop, cals, mult) and returns: data