Skip to content

Commit

Permalink
Speed up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Aug 6, 2023
1 parent 81aa430 commit f19e3ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytransform3d/test/test_rotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2235,10 +2235,9 @@ def test_euler_from_quaternion_edge_case():


def test_norm_angle_precision():
# test precision of float32
# NOTE: it would be better if angles are divided into 1e16 numbers
# to test precision of float64 but it is limited by memory
a_norm = np.linspace(np.pi, -np.pi, num=10000000,
a_norm = np.linspace(np.pi, -np.pi, num=1000000,
endpoint=False, dtype=np.float64)[::-1]
for b in np.linspace(-10.0 * np.pi, 10.0 * np.pi, 11):
a = a_norm + b
Expand Down

0 comments on commit f19e3ce

Please sign in to comment.