Skip to content

Commit

Permalink
fix indicing for intan
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Oct 6, 2023
1 parent 4884496 commit 262bd73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeanalysis/stimulus_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 262bd73

Please sign in to comment.