Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion skyfield/tests/test_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ def test_velocity_in_ITRF_to_GCRS2():
relative_error = (length_of(actual_motion - predicted_motion)
/ length_of(actual_motion))

acceptable_error = 1.8e-11
# The motion over 1 second is only ~7.3e-5 of the unit vector, so
# a single-ulp (~1.1e-16) difference in sin/cos/atan from the
# platform's math library moves this ratio by ~1.5e-12. Measured:
# 1.735e-11 on x86_64 (glibc), 1.801e-11 on arm64 (macOS libm),
# same NumPy. Leave room for that last-ulp noise. See #582.
acceptable_error = 2.0e-11
assert relative_error < acceptable_error

def test_light_time_method():
Expand Down
Loading