Skip to content

Commit

Permalink
rng.rand → rng.random
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Apr 12, 2024
1 parent b6a34a3 commit b3e5fba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,10 @@ def test_piecewise_polynomial_curve(self):
def test_piecewise_from_points_list(self):
N = 7
rng = random.default_rng()
points = array(rng.rand(3, N))
points_derivative = array(rng.rand(3, N))
points_second_derivative = array(rng.rand(3, N))
time_points = array(rng.rand(1, N)).T
points = array(rng.random(3, N))
points_derivative = array(rng.random(3, N))
points_second_derivative = array(rng.random(3, N))
time_points = array(rng.random(1, N)).T
time_points.sort(0)
polC0 = piecewise.FromPointsList(points, time_points)
self.assertEqual(polC0.min(), time_points[0, 0])
Expand Down Expand Up @@ -1285,10 +1285,10 @@ def test_se3_from_translation_curve(self):
# test with piecewise polynomial
N = 7
rng = random.default_rng()
points = array(rng.rand(3, N))
points = array(rng.random(3, N))
# points_derivative = array(random.rand(3, N))
# points_second_derivative = array(random.rand(3, N))
time_points = array(rng.rand(1, N)).T
time_points = array(rng.random(1, N)).T
time_points.sort(0)
translation = piecewise.FromPointsList(points, time_points)
min = translation.min()
Expand Down

0 comments on commit b3e5fba

Please sign in to comment.