Skip to content

Commit

Permalink
MAINT/DOC: spatial: Document and test the double cover property for R…
Browse files Browse the repository at this point in the history
…otation quaternions (scipy#18955)

* Document and test the double cover property for quaternions
  • Loading branch information
scottshambaugh committed Jul 28, 2023
1 parent 664c034 commit 5eafdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/spatial/transform/tests/test_rotation.py
Expand Up @@ -926,7 +926,7 @@ def test_approx_equal():

def test_approx_equal_single_rotation():
# also tests passing single argument to approx_equal
p = Rotation.from_rotvec([0, 0, 1e-9]) # less than default atol 1e-8
p = Rotation.from_rotvec([0, 0, 1e-9]) # less than default atol of 1e-8
q = Rotation.from_quat(np.eye(4))
assert p.approx_equal(q[3])
assert not p.approx_equal(q[0])
Expand Down

0 comments on commit 5eafdf2

Please sign in to comment.