Skip to content

Commit

Permalink
Soften Euler angle tolerance slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Sep 30, 2024
1 parent 9e508cd commit ca46e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def test_as_euler_angles():
R1 = quaternion.from_euler_angles(alpha, beta, gamma)
R2 = quaternion.from_euler_angles(*list(quaternion.as_euler_angles(R1)))
d = quaternion.rotation_intrinsic_distance(R1, R2)
assert d < 6e3*eps, ((alpha, beta, gamma), R1, R2, d) # Can't use allclose here; we don't care about rotor sign
assert d < 5e4*eps, ((alpha, beta, gamma), R1, R2, d) # Can't use allclose here; we don't care about rotor sign
q0 = quaternion.quaternion(0, 0.6, 0.8, 0)
assert q0.norm() == 1.0
assert abs(q0 - quaternion.from_euler_angles(*list(quaternion.as_euler_angles(q0)))) < 1.e-15
Expand Down

0 comments on commit ca46e27

Please sign in to comment.