File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ def _read_qstring(fid):
1010 If this number equals 0xFFFFFFFF, the string is null.
1111
1212 Strings are stored as unicode.
13+
14+ SOURCE: https://github.com/Intan-Technologies/load-rhs-notebook-python/blob/main/importrhsutilities.py
1315 """
1416
1517 (length ,) = struct .unpack ("<I" , fid .read (4 ))
@@ -37,7 +39,10 @@ def _read_qstring(fid):
3739
3840
3941def _read_header (fid ):
40- """Reads the Intan File Format header from the given file."""
42+ """Reads the Intan File Format header from the given file.
43+
44+ SOURCE: https://github.com/Intan-Technologies/load-rhs-notebook-python/blob/main/importrhsutilities.py
45+ """
4146
4247 # Check 'magic number' at beginning of file to make sure this is an Intan
4348 # Technologies RHD2000 data file.
@@ -218,6 +223,8 @@ def _read_header(fid):
218223def load_rhs (folder : str , file_expr : str = "*" ):
219224 """Load rhs data
220225
226+ Data type and coversions are based on https://intantech.com/files/Intan_RHS2000_data_file_formats.pdf.
227+
221228 Example:
222229 # Read data
223230 >>> rhs_data = load_rhs("/home/inbox/organoids21/032520_US_885kHz_sham", file_expr="amp*dat")
You can’t perform that action at this time.
0 commit comments