Skip to content

Commit

Permalink
Merge pull request #797 from pyiron/symmetry_permutation
Browse files Browse the repository at this point in the history
[minor] update neighborhood search for permutation
  • Loading branch information
samwaseda committed Oct 5, 2022
2 parents f093134 + aea541d commit 86fc4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_atomistics/atomistics/structure/symmetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def permutations(self):
)
positions -= np.floor(positions + self.epsilon)
distances, self._permutations = tree.query(positions)
if not np.allclose(distances, 0):
if np.ptp(distances) > self._symprec:
raise AssertionError("Neighbor search failed")
self._permutations = self._permutations.argsort(axis=-1)
return self._permutations
Expand Down

0 comments on commit 86fc4e8

Please sign in to comment.