Skip to content

Commit d82d09b

Browse files
Peter N. SteinmetzPeter N. Steinmetz
authored andcommitted
Added comment about scaling.
1 parent ea1408e commit d82d09b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neo/rawio/neuroscoperawio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def _parse_header(self):
9393
channel_group[int(xml_rc.text)] = grp_index
9494

9595
sig_dtype = "int16"
96+
# scale to convert sample values to voltage in mV = range of recording in volts *
97+
# 1000 mV/V /(number of bits * amplification)
9698
if nbits == 16:
9799
gain = voltage_range * 1000 / (2**nbits) / amplification
98100
# ~ elif nbits==32:

0 commit comments

Comments
 (0)