Skip to content

Commit

Permalink
Change decimal precision of tests involving ecef and enu to 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayitzin committed Jan 16, 2025
1 parent cdd4331 commit b87fdaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_common_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ def test_ecef2lla(self):
def test_ecef2enu(self):
np.testing.assert_array_almost_equal(ahrs.common.frames.ecef2enu(660930.192761082, -4701424.222957011, 4246579.604632881, 42, -82, 200),
[186.27752, 286.84222, 939.69262],
decimal=5)
decimal=4)
np.testing.assert_array_almost_equal(ahrs.common.frames.ecef2enu(5507528.9, 4556224.1, 6012820.8, 45.9132, 36.7484, 1877753.2),
[355601.2616, -923083.1558, 1041016.4238],
decimal=4)

def test_enu2ecef(self):
np.testing.assert_array_almost_equal(ahrs.common.frames.enu2ecef(186.27752, 286.84222, 939.69262, 42, -82, 200),
[660930.192761082, -4701424.222957011, 4246579.604632881],
decimal=5)
decimal=4)
np.testing.assert_array_almost_equal(ahrs.common.frames.enu2ecef(355601.2616, -923083.1558, 1041016.4238, 45.9132, 36.7484, 1877753.2),
[5507528.9, 4556224.1, 6012820.8],
decimal=4)
Expand Down

0 comments on commit b87fdaf

Please sign in to comment.