class_docstr: Raw object from a continuous wave SNIRF file.
  
  Parameters
  ----------
  fname : path-like
      Path to the SNIRF data file.
  optode_frame : str
      Coordinate frame used for the optode positions. The default is unknown,
      in which case the positions are not modified. If a known coordinate
      frame is provided (head, meg, mri), then the positions are transformed
      in to the Neuromag head coordinate frame (head).
  %(preload)s
  %(verbose)s
  
  See Also
  --------
  mne.io.Raw : Documentation of attributes and methods.
class_docstr_tok: ["Raw","object","from","a","continuous","wave","SNIRF","file",".","Parameters","--","--","--","--","--","fname",":","path-like","Path","to","the","SNIRF","data","file",".","optode_frame",":","str","Coordinate","frame","used","for","the","optode","positions",".","The","default","is","unknown",",","in","which","case","the","positions","are","not","modified",".","If","a","known","coordinate","frame","is","provided","(","head",",","meg",",","mri",")",",","then","the","positions","are","transformed","in","to","the","Neuromag","head","coordinate","frame","(","head",")",".","%","(","preload",")","s","%","(","verbose",")","s","See","Also","--","--","--","--","mne.io.Raw",":","Documentation","of","attributes","and","methods","."]
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."""
      import h5py
  
      with h5py.File(self._filenames[0], "r") as dat:
          one = dat["/nirs/data1/dataTimeSeries"][start:stop].T
  
      _mult_cal_one(data, one, idx, cals, mult)
  
imports: import datetime
  import re
  import numpy
  from ..._fiff._digitization import _make_dig_points
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _format_dig_points, create_info
  from ..._fiff.utils import _mult_cal_one
  from ..._freesurfer import get_mni_fiducials
  from ...annotations import Annotations
  from ...transforms import _frame_to_str, apply_trans
  from ...utils import _check_fname, _import_h5py, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from ..nirx.nirx import _convert_fnirs_to_head
label_desc: Use image node_id 2 for calling the RawSNIRF obj's underlying member method code with example usage: obj._read_segment_file(data, idx, fi, start, stop, cals, mult) without return types