Skip to content

Commit 449712a

Browse files
committed
add source reference
1 parent 081ed02 commit 449712a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

element_interface/intan_loader.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

3941
def _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):
218223
def 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")

0 commit comments

Comments
 (0)