Skip to content

Commit

Permalink
adapt to py3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
slava committed Nov 22, 2017
1 parent 15329d0 commit 932d7e9
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 @@ -211,7 +211,7 @@ def test_exp_log(self, arr):
assume(np.linalg.norm(arr) > DEFAULT_TOLERANCE)
q = GeneralQuaternion(*arr).normalized()
assert exp(log(q)) == q
assert log(exp(q)).imaginary == pytest.approx(q.imaginary) # because log is defined up to real
assert (log(exp(q)).imaginary.tolist() == pytest.approx(q.imaginary.tolist())) # log defined up to real

NUM_ELEMENTS = 25

Expand Down

0 comments on commit 932d7e9

Please sign in to comment.