We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c0e9eb + 0da1dad commit 7d9bbcdCopy full SHA for 7d9bbcd
src/spinspg/group.py
@@ -129,9 +129,10 @@ def get_symmetry_with_cell(
129
prim_translations.append(tmat @ trans)
130
131
prim_centerings = []
132
+ epsilon = symprec / (np.abs(np.linalg.det(lattice)) ** (1 / 3))
133
for centering in centerings:
134
prim_centering = tmat @ centering
- assert is_integer_array(prim_centering)
135
+ assert is_integer_array(prim_centering, atol=epsilon)
136
prim_centerings.append(np.around(prim_centering).astype(int))
137
138
return NonmagneticSymmetry(
0 commit comments