Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hsntools/sorting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_group_labels(class_labels, groups):

group_labels = np.zeros(len(class_labels), dtype=int)
for ind, cval in enumerate(class_labels):
group_labels[ind] = groups[:, 1][cval == groups[:, 0]]
group_labels[ind] = groups[:, 1][cval == groups[:, 0]][0]

return group_labels

Expand Down
Loading