We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79846ea commit ff26850Copy full SHA for ff26850
doped/generation.py
@@ -1423,7 +1423,9 @@ def __init__(
1423
if not generate_supercell: # re-order bulk supercell to match that of input supercell
1424
self.bulk_supercell = reorder_s1_like_s2(self.bulk_supercell, self.structure)
1425
1426
- self.min_image_distance = supercells.get_min_image_distance(self.bulk_supercell)
+ # get and round (to avoid tiny mismatches, due to rounding in search functions,
1427
+ # flagging issues) min image distance of supercell:
1428
+ self.min_image_distance = np.round(supercells.get_min_image_distance(self.bulk_supercell), 3)
1429
1430
# check that generated supercell is greater than ``min_image_distance``` Å in each direction:
1431
if self.min_image_distance < specified_min_image_distance and self.generate_supercell:
0 commit comments