Skip to content

Commit

Permalink
Fix of the cell threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ccigna authored and mesonepigreco committed Dec 13, 2023
1 parent e298dcd commit ab7e2b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cellconstructor/symmetries.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def __init__(self, structure, threshold = 1e-5):
raise ValueError("Error, symmetry operation can be initialize only if the structure has a unit cell")

self.structure = structure
self.threshold = np.float64(threshold)

# Max dimension
max_dimension = np.max(self.structure.unit_cell.ravel())
self.threshold = np.float64(threshold / max_dimension)

# Setup the threshold
symph.symm_base.set_accep_threshold(self.threshold)
Expand Down

0 comments on commit ab7e2b3

Please sign in to comment.