Skip to content

Commit 2e16a1e

Browse files
committed
DOC+RF: minor quaternion cleanup
Minor quaternion docstring cleanup and removing an unused code line.
1 parent 6b69972 commit 2e16a1e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

nibabel/quaternions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ def rotate_vector(v, q):
330330
def nearly_equivalent(q1, q2, rtol=1e-5, atol=1e-8):
331331
''' Returns True if `q1` and `q2` give near equivalent transforms
332332
333-
q1 may be nearly numerically equal to q2, or nearly equal to q2 * -1
334-
(becuase a quaternion multiplied by -1 gives the same transform).
333+
`q1` may be nearly numerically equal to `q2`, or nearly equal to `q2` * -1
334+
(because a quaternion multiplied by -1 gives the same transform).
335335
336336
Parameters
337337
----------
@@ -418,7 +418,7 @@ def angle_axis2mat(theta, vector, is_normalized=False):
418418
Returns
419419
-------
420420
mat : array shape (3,3)
421-
rotation matrix specified rotation
421+
rotation matrix for specified rotation
422422
423423
Notes
424424
-----

nibabel/tests/test_quaternions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def test_eye():
149149

150150

151151
def test_qrotate():
152-
vecs = np.eye(3)
153152
for vec in np.eye(3):
154153
for M, q in eg_pairs:
155154
vdash = nq.rotate_vector(vec, q)

0 commit comments

Comments
 (0)