Skip to content

Commit c923ce4

Browse files
authored
Merge pull request #353 from MaxPelly/main
decrease tolerance in np.allclose checks so that coordinates that are close to a special position are treated as being on that s.p.
2 parents b7f5ea3 + 1957705 commit c923ce4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GSASII/GSASIIspc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,10 +2225,10 @@ def GenAtom(XYZ,SGData,All=False,Uij=[],Move=True):
22252225
if All:
22262226
newX = np.round(newX,6)
22272227
# if np.sqrt(np.sum(np.round(newX%1.,6)**2-np.round(X%1.,6)**2)) < 1.e-6:
2228-
if np.allclose(newX,X,atol=2.e-5): #do we want %1. here?
2228+
if np.allclose(newX,X,atol=2.e-4): #do we want %1. here?
22292229
idup = False
22302230
else:
2231-
if True in [np.allclose(newX%1.,oldX%1.,atol=2.e-5) for oldX in XYZEquiv]:
2231+
if True in [np.allclose(newX%1.,oldX%1.,atol=2.e-4) for oldX in XYZEquiv]:
22322232
idup = False
22332233
if All or idup:
22342234
XYZEquiv.append(newX)

0 commit comments

Comments
 (0)