コード例 #1
0
ファイル: data.py プロジェクト: JLuebben/Laue-Script
 def _match_molecules(self):
     cloud1 = self['exp'].coords()
     cloud2 = self['micro'].coords()
     hitlist, transformation = match_point_clouds(cloud1, cloud2, threshold=.2)
     for i, atom in enumerate(self['exp'].atoms):
         # print atom.element, self['micro'].atoms[hitlist[i]].element,hitlist[i],self['micro'].atoms[hitlist[i]].name
         atom.transfer_matched_ADP(self['micro'].atoms[hitlist[i]], transformation)
コード例 #2
0
ファイル: thmareader.py プロジェクト: JLuebben/APD-Toolkit
def match(cloud1, cloud2):
    hitlist, transformation = match_point_clouds(cloud1, cloud2, threshold=.2)
    return hitlist, transformation