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),