Skip to content

Commit

Permalink
Fix transform utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Oct 17, 2024
1 parent bdcf4bd commit a52fa12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_transform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def test_quat_slerp(self):
key_rots = R.from_quat(np.stack([q1.cpu().numpy(), q2.cpu().numpy()]))
key_times = [0, 1]
slerp = Slerp(key_times, key_rots)
scipy_q_slerp = slerp([t]).as_quat()[0].astype(NumpyTypes.FLOAT32)
scipy_q_slerp = slerp([t.item()]).as_quat()[0].astype(NumpyTypes.FLOAT32)

assert quaternions_close(q_slerp, th.from_numpy(scipy_q_slerp))
assert_close(th.norm(q_slerp), th.tensor(1.0))
Expand Down

0 comments on commit a52fa12

Please sign in to comment.