Closed petrelharp closed 2 years ago
For instance:
>>> pyslim.unique_labels_by_group( ... group=np.array([1, 1, 4], dtype='int'), label=np.array([2, 2, 2], dtype='int') ... ) array([False, True, False, False, True])
The labels in groups 0, 2, and 3 are unique (there are no labels). This creates spurious errors when some individuals have no nodes.
I'm going to remove uinque_labels_by_group - it's no longer needed. Edit: It is used, in individual_parents.
uinque_labels_by_group
individual_parents
For instance:
The labels in groups 0, 2, and 3 are unique (there are no labels). This creates spurious errors when some individuals have no nodes.