postprocessor.core.functions.tracks.get_joint_ids

postprocessor.core.functions.tracks.get_joint_ids(merging_seqs) dict

Convert a series of merges into a dictionary where the key is the cell_id of destination and the value a list of the other track ids that were merged into the key

Parameters

merging_seqs – list of tuples of indices indicating the

sequence of merging events. It is important for this to be in sequential order

How it works:

The order of merging matters for naming, always the leftmost track will keep the id

For example, having tracks (a, b, c, d) and the iterations of merge events:

0 a b c d 1 a b cd 2 ab cd 3 abcd

We shold get:

output {a:a, b:a, c:a, d:a}