Skip to content

Commit

Permalink
Remove magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Nov 26, 2024
1 parent ada7798 commit 0497f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytransform3d/test/test_trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def test_concat_dynamic():

def test_concat_many_to_many():
rng = np.random.default_rng(84320)
A2Bs = np.stack([random_transform(rng) for _ in range(5)])
B2Cs = np.stack([random_transform(rng) for _ in range(5)])
n_rotations = 5
A2Bs = np.stack([random_transform(rng) for _ in range(n_rotations)])
B2Cs = np.stack([random_transform(rng) for _ in range(n_rotations)])
A2Cs = ptr.concat_many_to_many(A2Bs, B2Cs)
for i in range(len(A2Bs)):
assert_array_almost_equal(A2Cs[i], pt.concat(A2Bs[i], B2Cs[i]))
Expand Down

0 comments on commit 0497f7a

Please sign in to comment.