pele.mindist.periodic_mindist#
- class pele.mindist.periodic_mindist.MinDistBulk[source]
-
class MinDistBulk:Obtain the best alignment between two configurations of a periodic system
- MinDistBulk.align_fragments()[source]
-
def align_fragments(self, x1, x2):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 cartesian coordinates
- Returns:
- a triple of (dist, coords1, coords2). coords1 are the unchanged coords1
- and coords2 are brought in best alignment with coords2