Skip to content

Commit 6aa883b

Browse files
committed
Fix kcoords one more time
1 parent 3e8297d commit 6aa883b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spikeinterface/sorters/external/kilosort4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _setup_json_probe_map(cls, recording, sorter_output_folder):
440440
yc = positions[:, 1]
441441
unique_groups = set(groups)
442442
group_map = {group: idx for idx, group in enumerate(unique_groups)}
443-
kcoords = np.array(list(group_map.values()), dtype=int)
443+
kcoords = np.array([group_map[group] for group in groups], dtype=int)
444444

445445
probe = {
446446
"chanMap": chanMap,

0 commit comments

Comments
 (0)