Skip to content

Set rtol to 1e-4 to avoid system-dependent floating-point differences #3004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2024
Merged
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
4 changes: 2 additions & 2 deletions pygmt/tests/test_x2sys_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,5 @@ def test_x2sys_cross_trackvalues():
assert isinstance(output, pd.DataFrame)
assert output.shape == (14338, 12)
# Check mean of track 1 values (z_1) and track 2 values (z_2)
npt.assert_allclose(output.z_1.mean(), -2422.418556)
npt.assert_allclose(output.z_2.mean(), -2402.268364)
npt.assert_allclose(output.z_1.mean(), -2422.418556, rtol=1e-4)
npt.assert_allclose(output.z_2.mean(), -2402.268364, rtol=1e-4)