pele.angleaxis.bulk_rigid_mindist#

class pele.angleaxis.bulk_rigid_mindist.MinDistBulkRigid

Source

class MinDistBulkRigid:

Obtain the best alignment between two configurations of a periodic system

MinDistBulkRigid.align_fragments()

Source

def align_fragments(self, coords1, coords2):

Obtain the best alignment between two configurations of a periodic system

Parameters:
coords1, coords2np.array

the structures to align. X2 will be aligned with X1 Both structures are arrays of rigid body com positions and aa vectors

Returns:
a triple of (dist, coords1, coords2). coords1 are the unchanged coords1
and coords2 are brought in best alignment with coords2
MinDistBulkRigid.finalize_best_match()

Source

def finalize_best_match(self, x1, best_x2):

do final processing of the best match