coincidence_HM.group_by_id#
Back to Module page
Summary#
Groups the triggers in a clist into sublists with common calphas
Signature#
def group_by_id(clist, c0_pos, ncalpha = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Processedclist |
||
|
Index of c0 |
||
|
None |
Use only up to ncalpha coefficients if needed, useful for making heatmaps |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
|
Docstring#
Groups the triggers in a clist into sublists with common calphas
:param clist: Processedclist
:param c0_pos: Index of c0
:param ncalpha:
Use only up to ncalpha coefficients if needed, useful for making
heatmaps
:return: 1. List of unique hashes (template ids) of templates in clist
2. List of sublists of the clist with each sublist having triggers
with a common template id