Skip to content

Commit

Permalink
fix: quaternion_slerp error
Browse files Browse the repository at this point in the history
  • Loading branch information
HeetVekariya committed Dec 16, 2023
1 parent 055415d commit 2ee1671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/MDAnalysis/lib/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ def quaternion_slerp(quat0, quat1, fraction, spin=0, shortestpath=True):
>>> q = quaternion_slerp(q0, q1, 0.5)
>>> angle = math.acos(np.dot(q0, q))
>>> np.allclose(2.0, math.acos(np.dot(q0, q1)) / angle) or \
np.allclose(2.0, math.acos(-np.dot(q0, q1)) / angle)
... np.allclose(2.0, math.acos(-np.dot(q0, q1)) / angle)
True
"""
Expand Down

0 comments on commit 2ee1671

Please sign in to comment.