Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent bdbead2 commit 0102b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/sortingcomponents/matching/kilosort.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def compute_matching(self, traces, start_frame, end_frame, segment_index):
for t in range(self.max_iter):
Cf = torch.relu(B) ** 2 / self.nm.unsqueeze(-1)
Cf[:, : self.margin] = 0
Cf[:, -self.margin:] = 0
Cf[:, -self.margin :] = 0

Cfmax, imax = torch.max(Cf, 0)
Cmax = max_pool1d(
Expand Down Expand Up @@ -162,7 +162,7 @@ def compute_matching(self, traces, start_frame, end_frame, segment_index):

spikes = spikes[:k]
spikes["channel_index"] = 0
spikes["sample_index"] += (self.nbefore-self.nafter)//2
spikes["sample_index"] += (self.nbefore - self.nafter) // 2
order = np.argsort(spikes["sample_index"])
spikes = spikes[order]

Expand Down

0 comments on commit 0102b86

Please sign in to comment.