This is motivated by the use case where a pseudomerohedral indexing ambiguity is resolved by unit cell clustering and manual reindexing. For example: for an orthorhombic unit cell 100 x 102 x 150 A, there is a pseudomerohedral indexing ambiguity around the rotation axis a+b. The misindexed lattices will cluster around 102 x 100 x 150 A. If the clusters are separable, then this is resolved by separately isolating the second cluster and reindexing it with modify_reindex_to_reference, then merging both clusters (which are now indexed consistently).
The skip_component parameter is needed because this approach fails if an experiment belongs to both components and thus appears twice in the final merge. Therefore when we isolate component 1, we exclude any experiment that also matches component 0.
This is motivated by the use case where a pseudomerohedral indexing ambiguity is resolved by unit cell clustering and manual reindexing. For example: for an orthorhombic unit cell 100 x 102 x 150 A, there is a pseudomerohedral indexing ambiguity around the rotation axis a+b. The misindexed lattices will cluster around 102 x 100 x 150 A. If the clusters are separable, then this is resolved by separately isolating the second cluster and reindexing it with modify_reindex_to_reference, then merging both clusters (which are now indexed consistently).
The skip_component parameter is needed because this approach fails if an experiment belongs to both components and thus appears twice in the final merge. Therefore when we isolate component 1, we exclude any experiment that also matches component 0.