Skip to content

Commit 5c6b54f

Browse files
authored
Apply suggestions from code review
1 parent 686ed53 commit 5c6b54f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/spikeinterface/sorters/external/kilosort4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ def _setup_json_probe_map(cls, recording, sorter_output_folder):
438438
chanMap = np.arange(n_chan)
439439
xc = positions[:, 0]
440440
yc = positions[:, 1]
441-
unique_groups = np.unique(groups)
441+
unique_groups = set(groups)
442442
group_map = {group: idx for idx, group in enumerate(unique_groups)}
443-
kcoords = np.array([group_map[group] for group in groups], dtype=int)
443+
kcoords = np.array(group_map.values(), dtype=int)
444444

445445
probe = {
446446
"chanMap": chanMap,

0 commit comments

Comments
 (0)