Skip to content

Commit

Permalink
uncomment temperature intan header automatically corrects for file fo…
Browse files Browse the repository at this point in the history
…rmat
  • Loading branch information
zm711 authored Aug 18, 2023
1 parent 46bc44c commit 818479f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions neo/rawio/intanbinaryrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,15 @@ def read_rhd(filename):
data_dtype[2] += [(name, 'uint16',)]

# temperature is not an official channel in the header
#for i in range(global_info['num_temp_sensor_channels']):
# name = 'temperature_{}'.format(i)
# chan_info = {'native_channel_name': name, 'signal_type': 20}
# chan_info['sampling_rate'] = sr / BLOCK_SIZE
# chan_info['units'] = 'Celsius'
# chan_info['gain'] = 0.001
# chan_info['offset'] = 0.
# ordered_channels.append(chan_info)
# data_dtype += [(name,'int16',)]
for i in range(global_info['num_temp_sensor_channels']):
name = 'temperature_{}'.format(i)
chan_info = {'native_channel_name': name, 'signal_type': 20}
chan_info['sampling_rate'] = sr / BLOCK_SIZE
chan_info['units'] = 'Celsius'
chan_info['gain'] = 0.001
chan_info['offset'] = 0.
ordered_channels.append(chan_info)
data_dtype += [(name,'int16',)]

# 3: USB board ADC input channel stored in analogin.dat/board-ANALOG-*
for chan_info in channels_by_type[3]:
Expand Down

0 comments on commit 818479f

Please sign in to comment.