Skip to content

Commit ff23499

Browse files
committed
fix unique
1 parent ed4802e commit ff23499

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spikeinterface_gui/tracemapview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, controller=None, parent=None, backend="qt"):
2727
channel_groups = controller.get_channel_groups()
2828
self.channel_order = np.lexsort((-pos[:, 0], pos[:, 1], channel_groups))
2929
self.channel_order_reverse = np.argsort(self.channel_order, kind="stable")
30-
if len(channel_groups) > 1:
30+
if len(np.unique(channel_groups)) > 1:
3131
self.chan_group_offsets, = np.nonzero(np.diff(np.sort(channel_groups)))
3232
self.chan_group_offsets = self.chan_group_offsets + 1
3333
else:

0 commit comments

Comments
 (0)