class_docstr: Raw object from Neuroscan CNT file.
  
  .. Note::
      The channel positions are read from the file header. Channels that are
      not assigned with keywords ``eog``, ``ecg``, ``emg`` and ``misc`` are
      assigned as eeg channels. All the eeg channel locations are fit to a
      sphere when computing the z-coordinates for the channels. If channels
      assigned as eeg channels have locations far away from the head (i.e.
      x and y coordinates don't fit to a sphere), all the channel locations
      will be distorted. If you are not sure that the channel locations in
      the header are correct, it is probably safer to use a (standard)
      montage. See :func:`mne.channels.make_standard_montage`
  
  Parameters
  ----------
  input_fname : path-like
      Path to the CNT file.
  eog : list | tuple
      Names of channels or list of indices that should be designated
      EOG channels. If ``'auto'``, the channel names beginning with
      ``EOG`` are used. Defaults to empty tuple.
  misc : list | tuple
      Names of channels or list of indices that should be designated
      MISC channels. Defaults to empty tuple.
  ecg : list | tuple
      Names of channels or list of indices that should be designated
      ECG channels. If ``'auto'``, the channel names beginning with
      ``ECG`` are used. Defaults to empty tuple.
  emg : list | tuple
      Names of channels or list of indices that should be designated
      EMG channels. If ``'auto'``, the channel names beginning with
      ``EMG`` are used. Defaults to empty tuple.
  data_format : ``'auto'`` | ``'int16'`` | ``'int32'``
      Defines the data format the data is read in. If ``'auto'``, it is
      determined from the file header using ``numsamples`` field.
      Defaults to ``'auto'``.
  date_format : ``'mm/dd/yy'`` | ``'dd/mm/yy'``
      Format of date in the header. Defaults to ``'mm/dd/yy'``.
  header : ``'auto'`` | ``'new'`` | ``'old'``
      Defines the header format. Used to describe how bad channels
      are formatted. If auto, reads using old and new header and
      if either contain a bad channel make channel bad.
      Defaults to ``'auto'``.
  %(preload)s
  stim_channel : bool | None
      Add a stim channel from the events. Defaults to None to trigger a
      future warning.
  
      .. warning:: This defaults to True in 0.18 but will change to False in
                   0.19 (when no stim channel synthesis will be allowed)
                   and be removed in 0.20; migrate code to use
                   :func:`mne.events_from_annotations` instead.
  
      .. versionadded:: 0.18
  %(verbose)s
  
  See Also
  --------
  mne.io.Raw : Documentation of attributes and methods.
class_docstr_tok: ["Raw","object","from","Neuroscan","CNT","file",".","..","Note",":",":","The","channel","positions","are","read","from","the","file","header",".","Channels","that","are","not","assigned","with","keywords","``","eog","``",",","``","ecg","``",",","``","emg","``","and","``","misc","``","are","assigned","as","eeg","channels",".","All","the","eeg","channel","locations","are","fit","to","a","sphere","when","computing","the","z-coordinates","for","the","channels",".","If","channels","assigned","as","eeg","channels","have","locations","far","away","from","the","head","(","i.e",".","x","and","y","coordinates","do","n't","fit","to","a","sphere",")",",","all","the","channel","locations","will","be","distorted",".","If","you","are","not","sure","that","the","channel","locations","in","the","header","are","correct",",","it","is","probably","safer","to","use","a","(","standard",")","montage",".","See",":","func",":","`","mne.channels.make_standard_montage","`","Parameters","--","--","--","--","--","input_fname",":","path-like","Path","to","the","CNT","file",".","eog",":","list","|","tuple","Names","of","channels","or","list","of","indices","that","should","be","designated","EOG","channels",".","If","``","'auto","'","``",",","the","channel","names","beginning","with","``","EOG","``","are","used",".","Defaults","to","empty","tuple",".","misc",":","list","|","tuple","Names","of","channels","or","list","of","indices","that","should","be","designated","MISC","channels",".","Defaults","to","empty","tuple",".","ecg",":","list","|","tuple","Names","of","channels","or","list","of","indices","that","should","be","designated","ECG","channels",".","If","``","'auto","'","``",",","the","channel","names","beginning","with","``","ECG","``","are","used",".","Defaults","to","empty","tuple",".","emg",":","list","|","tuple","Names","of","channels","or","list","of","indices","that","should","be","designated","EMG","channels",".","If","``","'auto","'","``",",","the","channel","names","beginning","with","``","EMG","``","are","used",".","Defaults","to","empty","tuple",".","data_format",":","``","'auto","'","``","|","``","'int16","'","``","|","``","'int32","'","``","Defines","the","data","format","the","data","is","read","in",".","If","``","'auto","'","``",",","it","is","determined","from","the","file","header","using","``","numsamples","``","field",".","Defaults","to","``","'auto","'","``",".","date_format",":","``","'mm\/dd\/yy","'","``","|","``","'dd\/mm\/yy","'","``","Format","of","date","in","the","header",".","Defaults","to","``","'mm\/dd\/yy","'","``",".","header",":","``","'auto","'","``","|","``","'new","'","``","|","``","'old","'","``","Defines","the","header","format",".","Used","to","describe","how","bad","channels","are","formatted",".","If","auto",",","reads","using","old","and","new","header","and","if","either","contain","a","bad","channel","make","channel","bad",".","Defaults","to","``","'auto","'","``",".","%","(","preload",")","s","stim_channel",":","bool","|","None","Add","a","stim","channel","from","the","events",".","Defaults","to","None","to","trigger","a","future","warning",".","..","warning",":",":","This","defaults","to","True","in","0.18","but","will","change","to","False","in","0.19","(","when","no","stim","channel","synthesis","will","be","allowed",")","and","be","removed","in","0.20",";","migrate","code","to","use",":","func",":","`","mne.events_from_annotations","`","instead",".","..","versionadded",":",":","0.18","%","(","verbose",")","s","See","Also","--","--","--","--","mne.io.Raw",":","Documentation","of","attributes","and","methods","."]
code: def __init__(
      self,
      input_fname,
      eog=(),
      misc=(),
      ecg=(),
      emg=(),
      data_format="auto",
      date_format="mm/dd/yy",
      *,
      header="auto",
      preload=False,
      verbose=None,
  ):
      _check_option(
          "date_format", date_format, ["mm/dd/yy", "dd/mm/yy"]
      )
      if date_format == "dd/mm/yy":
          _date_format = "%d/%m/%y %H:%M:%S"
      else:
          _date_format = "%m/%d/%y %H:%M:%S"
  
      input_fname = path.abspath(input_fname)
      info, cnt_info = _get_cnt_info(
          input_fname,
          eog,
          ecg,
          emg,
          misc,
          data_format,
          _date_format,
          header,
      )
      last_samps = [cnt_info["n_samples"] - 1]
      super().__init__(
          info,
          preload,
          filenames=[input_fname],
          raw_extras=[cnt_info],
          last_samps=last_samps,
          orig_format="int",
          verbose=verbose,
      )
  
      data_format = "int32" if cnt_info["n_bytes"] == 4 else "int16"
      self.set_annotations(
          _read_annotations_cnt(input_fname, data_format=data_format)
      )
  
file_path: mne-python/mne/io/cnt/cnt.py
imports: from os import path
  import numpy
  from ..._fiff._digitization import _make_dig_points
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _create_chs, _find_channels, _mult_cal_one, read_str
  from ...annotations import Annotations
  from ...channels.layout import _topo_to_sphere
  from ...utils import _check_option, _validate_type, fill_doc, warn
  from ..base import BaseRaw
  from ._utils import CNTEventType3, _compute_robust_event_table_position, _get_event_parser, _read_teeg, _session_date_2_meas_date
label_desc: Use image node_id 1 to create a new RawCNT object from inherited base classes: BaseRaw with example: obj = RawCNT(input_fname, eog, misc, ecg, emg, data_format, date_format)