We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4802e commit ff23499Copy full SHA for ff23499
1 file changed
spikeinterface_gui/tracemapview.py
@@ -27,7 +27,7 @@ def __init__(self, controller=None, parent=None, backend="qt"):
27
channel_groups = controller.get_channel_groups()
28
self.channel_order = np.lexsort((-pos[:, 0], pos[:, 1], channel_groups))
29
self.channel_order_reverse = np.argsort(self.channel_order, kind="stable")
30
- if len(channel_groups) > 1:
+ if len(np.unique(channel_groups)) > 1:
31
self.chan_group_offsets, = np.nonzero(np.diff(np.sort(channel_groups)))
32
self.chan_group_offsets = self.chan_group_offsets + 1
33
else:
0 commit comments