Skip to content

Commit c1ca39c

Browse files
committed
Fixed minor bug in array access in TSR unit test.
1 parent bef26f2 commit c1ca39c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/tsr/test_tsr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def test_sample_xyzrpy(self):
1616
[-pi, -pi]] # yaw
1717
tsr = TSR(Bw=Bw)
1818
s = tsr.sample_xyzrpy()
19+
20+
Bw = numpy.array(Bw)
1921
self.assertTrue(numpy.all(s >= Bw[:, 0]))
2022
self.assertTrue(numpy.all(s <= Bw[:, 1]))
2123

@@ -28,5 +30,7 @@ def test_sample_xyzrpy(self):
2830
[-3*pi/2., -pi/2.]] # yaw
2931
tsr = TSR(Bw=Bw)
3032
s = tsr.sample_xyzrpy()
33+
34+
Bw = numpy.array(Bw)
3135
self.assertTrue(numpy.all(s >= Bw[:, 0]))
3236
self.assertTrue(numpy.all(s <= Bw[:, 1]))

0 commit comments

Comments
 (0)