Skip to content

Commit 166162c

Browse files
committed
TEST: Test angle_axis2mat(is_normalized=True)
1 parent e48b746 commit 166162c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nibabel/tests/test_quaternions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,6 @@ def test_angle_axis():
185185
yield nq.nearly_equivalent, q, q2
186186
aa_mat = nq.angle_axis2mat(theta, vec)
187187
yield assert_array_almost_equal, aa_mat, M
188+
unit_vec = vec / np.sqrt(vec.dot(vec))
189+
aa_mat2 = nq.angle_axis2mat(theta, unit_vec, is_normalized=True)
190+
yield assert_array_almost_equal, aa_mat2, M

0 commit comments

Comments
 (0)