Skip to content

Commit 6ae5a2a

Browse files
committed
Fix bug in sort_coords
1 parent 499cb7f commit 6ae5a2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyscf/symm/geom.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ def argsort_coords(coords, decimals=None, tol=0.05):
7979
return idx
8080

8181
def sort_coords(coords, decimals=None, tol=0.05):
82-
if decimals is None:
83-
decimals = int(-numpy.log10(tol)) - 1
8482
coords = numpy.asarray(coords)
85-
idx = argsort_coords(coords, decimals)
83+
idx = argsort_coords(coords, tol=tol)
8684
return coords[idx]
8785

8886
# ref. http://en.wikipedia.org/wiki/Rotation_matrix

0 commit comments

Comments
 (0)