Skip to content

Commit 81466f2

Browse files
committed
Handle the units for 'CH' channels mentioned by miketrumpis.
1 parent aaec649 commit 81466f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

neo/rawio/openephysrawio.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ def _parse_header(self):
120120

121121
if seg_index == 0:
122122
# add in channel list
123+
if ch_name[:2].upper() == 'CH':
124+
units = 'uV'
125+
else:
126+
units = 'V'
123127
signal_channels.append((ch_name, chan_id, chan_info['sampleRate'],
124-
'int16', 'V', chan_info['bitVolts'], 0., processor_id))
128+
'int16', units, chan_info['bitVolts'], 0., processor_id))
125129

126130
# In some cases, continuous do not have the same lentgh because
127131
# one record block is missing when the "OE GUI is freezing"

0 commit comments

Comments
 (0)