@@ -247,16 +247,18 @@ def get_disp(self, pos, lattice, translation):
247247 # print("++++", id, dists[id], id, diffs[id], translation) #; import sys; sys.exit()
248248 return diffs [id ], dists [id ]
249249
250- def check_with_ws2 (self , ws2 , lattice , tm , same_group = True ):
250+ def check_with_ws2 (self , ws2 , lattice , tol , same_group = True ):
251251 """
252252 Given two Wyckoff sites, checks the inter-atomic distances between them.
253253
254254 Args:
255255 - ws2: a different WP object (will always return False if
256256 two identical WS's are provided)
257257 - lattice: a 3x3 cell matrix
258+ - tol: tolerance value for distance checking
258259 - same_group: whether or not two WS's are in the same structure.
259260 Default value True reduces the calculation cost
261+
260262 Returns:
261263 True or False
262264 """
@@ -265,10 +267,8 @@ def check_with_ws2(self, ws2, lattice, tm, same_group=True):
265267 if self .PBC != ws2 .PBC :
266268 raise ValueError ("PBC values do not match between Wyckoff sites" )
267269
268- # Get tolerance
269- tol = tm .get_tol (self .specie , ws2 .specie )
270270 # Symmetry shortcut method: check only some atoms
271- if same_group is True :
271+ if same_group :
272272 # We can either check one atom in WS1 against all WS2, or vice-versa
273273 # Check which option is faster
274274 if self .multiplicity > ws2 .multiplicity :
0 commit comments