From 818479f5c826b4d1d465d8234fa070b2010fad1e Mon Sep 17 00:00:00 2001 From: Zach McKenzie <92116279+zm711@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:22:14 -0400 Subject: [PATCH] uncomment temperature intan header automatically corrects for file format --- neo/rawio/intanbinaryrawio.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/neo/rawio/intanbinaryrawio.py b/neo/rawio/intanbinaryrawio.py index d1b945875..718e7d2a6 100644 --- a/neo/rawio/intanbinaryrawio.py +++ b/neo/rawio/intanbinaryrawio.py @@ -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]: