Skip to content

Commit 036691b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3032112 commit 036691b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/spikeinterface/core/sorting_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ def random_spikes_selection(
207207
inds_in_seg = spike_indices[segment_index][unit_id]
208208
if margin_size is not None:
209209
local_spikes = spikes[segment_index][inds_in_seg]
210-
mask = (local_spikes["sample_index"] >= margin_size) & (local_spikes["sample_index"] < (num_samples[segment_index] - margin_size))
210+
mask = (local_spikes["sample_index"] >= margin_size) & (
211+
local_spikes["sample_index"] < (num_samples[segment_index] - margin_size)
212+
)
211213
inds_in_seg = inds_in_seg[mask]
212214
# go back to absolut index
213215
inds_in_seg_abs = inds_in_seg + cum_sizes[segment_index]

0 commit comments

Comments
 (0)