@@ -70,15 +70,48 @@ class NeuralynxRawIO(BaseRawIO):
7070 This version works with rawmode of one-dir for a single directory of files or one-file for
7171 a single file.
7272
73- Examples:
74- >>> reader = NeuralynxRawIO(dirname='Cheetah_v5.5.1/original_data')
75- >>> reader.parse_header()
76-
77- Inspect all files in the directory.
78-
79- >>> print(reader)
80-
81- Display all information about signal channels, units, segment size....
73+ Parameters
74+ ----------
75+ dirname: str, default: ''
76+ Name of directory containing all files for a dataset. If provided, filename is
77+ ignored. But one of either dirname or filename is required.
78+ filename: str, default: ''
79+ Name of a single ncs, nse, nev, or ntt file to include in dataset. Will be ignored,
80+ if dirname is provided. But one of either dirname or filename is required.
81+ exclude_filename: str | list | None, default: None
82+ Name of a single ncs, nse, nev or ntt file or list of such files. Expects plain
83+ filenames (without directory path).
84+ None will search for all file types
85+ keep_original_times: bool, default: False
86+ If True, keep original start time as in files,
87+ Otherwise set 0 of time to first time in dataset
88+
89+ Notes
90+ -----
91+ * This IO supports NCS, NEV, NSE and NTT file formats (not NVT or NRD yet)
92+
93+ * These variations of header format and possible differences between the stated sampling frequency
94+ and actual sampling frequency can create apparent time discrepancies in .Ncs files. Additionally,
95+ the Neuralynx recording software can start and stop recording while continuing to write samples
96+ to a single .Ncs file, which creates larger gaps in the time sequences of the samples.
97+
98+ * This RawIO attempts to correct for these deviations where possible and present a single section of
99+ contiguous samples with one sampling frequency, t_start, and length for each .Ncs file. These
100+ sections are determined by the NcsSectionsFactory class. In the
101+ event the gaps are larger, this RawIO only provides the samples from the first section as belonging
102+ to one Segment.
103+
104+ Examples
105+ --------
106+ >>> import neo.rawio
107+ >>> reader = neo.rawio.NeuralynxRawIO(dirname='Cheetah_v5.5.1/original_data')
108+ >>> reader.parse_header()
109+
110+ Inspect all files in the directory.
111+
112+ >>> print(reader)
113+
114+ Display all information about signal channels, units, segment size....
82115 """
83116
84117 extensions = ["nse" , "ncs" , "nev" , "ntt" , "nvt" , "nrd" ] # nvt and nrd are not yet supported
@@ -93,24 +126,7 @@ class NeuralynxRawIO(BaseRawIO):
93126 ]
94127
95128 def __init__ (self , dirname = "" , filename = "" , exclude_filename = None , keep_original_times = False , ** kargs ):
96- """
97- Initialize io for either a directory of Ncs files or a single Ncs file.
98-
99- Parameters
100- ----------
101- dirname: str
102- name of directory containing all files for dataset. If provided, filename is
103- ignored.
104- filename: str
105- name of a single ncs, nse, nev, or ntt file to include in dataset. Will be ignored,
106- if dirname is provided.
107- exclude_filename: str or list
108- name of a single ncs, nse, nev or ntt file or list of such files. Expects plain
109- filenames (without directory path).
110- keep_original_times:
111- if True, keep original start time as in files,
112- otherwise set 0 of time to first time in dataset
113- """
129+
114130 if dirname != "" :
115131 self .dirname = dirname
116132 self .rawmode = "one-dir"
0 commit comments