convnwb.sorting.utils.get_group_labels

convnwb.sorting.utils.get_group_labels(class_labels, groups)[source]

Get the group label for each spike (based on spike class + group mapping).

Parameters:
class_labels1d array

Class assignment of each spike, as extracted from the sorting data.

groups2d array

Class and group assignment mapping, as extracted from the sorting data.

Returns:
group_labels1d array

Group label for each spike.