From 262bd7398a7f5ba48126e53dcb4eae510bed8961 Mon Sep 17 00:00:00 2001 From: Zach McKenzie <92116279+zm711@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:57:17 -0400 Subject: [PATCH] fix indicing for intan --- src/spikeanalysis/stimulus_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeanalysis/stimulus_data.py b/src/spikeanalysis/stimulus_data.py index 11a65c0..acd16f1 100644 --- a/src/spikeanalysis/stimulus_data.py +++ b/src/spikeanalysis/stimulus_data.py @@ -304,8 +304,8 @@ def get_final_digital_data(self): raise Exception("There is no digital data present") values = np.zeros((16, len(self._raw_digital_data)), dtype=np.int16) # 16 digital-in for intan - for value in range(1, 17): - values[value - 1, :] = np.not_equal( # this operation comes from the python Intan code + for value in range(16): + values[value, :] = np.not_equal( # this operation comes from the python Intan code np.bitwise_and( self._raw_digital_data, (1 << value),