Skip to content

Commit

Permalink
Fix wrapping of computed angles in test_constructorBetweenFactorPose2s
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 11, 2024
1 parent caa425f commit d2295b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/gtsam/tests/test_backwards_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ def test_constructorBetweenFactorPose2s(self) -> None:
thetas_deg = np.array([wRi.degrees() for wRi in wRi_list])

# map all angles to [0,360)
thetas_deg = thetas_deg % 360
thetas_deg -= thetas_deg[0]
thetas_deg = (thetas_deg + 360) % 360

expected_thetas_deg = np.array([0.0, 90.0, 0.0])
np.testing.assert_allclose(thetas_deg, expected_thetas_deg, atol=0.1)
Expand Down

0 comments on commit d2295b4

Please sign in to comment.