Module dcg_sci_tool.structures_analysis.are_structures_same

Functions

def are_structures_same(file1, file2, tolerance=1e-06, verbose=False)

判断两个结构文件是否相同,原子顺序可以不同

参数: file1, file2: 结构文件路径 tolerance: 原子位置比较的容差,默认单位为Å,默认值为1e-6 verbose: 是否输出详细信息,默认为False

返回: bool: True表示结构相同

def compare_with_types(p1, p2, tolerance, verbose)

有原子类型信息的比较

def match_positions(pos1, pos2, tolerance, verbose)

匹配两组原子位置