Skip to content

Commit

Permalink
Merge pull request #433 from HEXRD/rotations-patch
Browse files Browse the repository at this point in the history
Update rotations.py
  • Loading branch information
joelvbernier authored Apr 20, 2022
2 parents 33db1b8 + effc12b commit 18ebb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexrd/rotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,11 +795,11 @@ def angleAxisOfRotMat(R):
# * near pi -- binary rotation; need to find axis
# * neither -- general case; can use skew part
#
tol = cnst.epsf
tol = cnst.ten_epsf

anear0 = angle < tol

angle[anear0] = 0
angle[anear0] = 0.

raxis = vstack(
[R[:, 2, 1] - R[:, 1, 2],
Expand Down

0 comments on commit 18ebb7a

Please sign in to comment.