update logic in angular error comparison
parent
c4a4e13196
commit
54d3471121
|
|
@ -199,7 +199,7 @@ class TestShonanAveraging(GtsamTestCase):
|
||||||
|
|
||||||
# map all angles to [0,360)
|
# map all angles to [0,360)
|
||||||
thetas_deg = thetas_deg % 360
|
thetas_deg = thetas_deg % 360
|
||||||
thetas_deg -= max(thetas_deg)
|
thetas_deg -= thetas_deg[0]
|
||||||
|
|
||||||
expected_thetas_deg = np.array([0.0, 90.0, 0.0])
|
expected_thetas_deg = np.array([0.0, 90.0, 0.0])
|
||||||
np.testing.assert_allclose(thetas_deg, expected_thetas_deg, atol=0.1)
|
np.testing.assert_allclose(thetas_deg, expected_thetas_deg, atol=0.1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue