Skip to content

Commit

Permalink
test(backport): Lower tolerance for agreement between amd64 and arm64 (
Browse files Browse the repository at this point in the history
…#2497)

* Backport PR #2447
  • Loading branch information
matthewfeickert authored May 30, 2024
1 parent efa0cbb commit b054d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_asymptotic_calculator_has_fitted_pars(test_stat):
assert pytest.approx([1.0, 1.0], rel=rtol) == pyhf.tensorlib.tolist(
fitted_pars.free_fit_to_data
)
# lower tolerance for amd64 and arm64 to agree
assert pytest.approx(
[7.6470499e-05, 1.4997178], rel=rtol
[7.6470499e-05, 1.4997178], rel=1e-3
) == pyhf.tensorlib.tolist(fitted_pars.free_fit_to_asimov)

0 comments on commit b054d15

Please sign in to comment.