Skip to content

Commit

Permalink
lintiing
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 3, 2023
1 parent 0644d3e commit 44a6209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spikeanalysis/stimulus_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ def get_final_digital_data(self):

values = np.zeros((16, len(self._raw_digital_data))) # 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
values[value - 1, :] = np.not_equal( # this operation comes from the python Intan code
np.bitwise_and(
self._raw_digital_data,
(1 << value),
),
0,
)
self.dig_in_channels = np.nonzero(np.sum(values, axis=1))[0]+1

self.dig_in_channels = np.nonzero(np.sum(values, axis=1))[0] + 1
self.digital_data = values[np.nonzero(np.sum(values, axis=1))[0]]

def generate_digital_events(self):
Expand Down

0 comments on commit 44a6209

Please sign in to comment.