Skip to content

Commit

Permalink
adjust test precision
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Jan 8, 2024
1 parent 25b5cb8 commit eb2d988
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradunwarp/core/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ def test_siemens_B():
bx = siemens_B(siemens_coeffs.alpha_x, siemens_coeffs.beta_x, x, y, z, R0)
ref_bx = np.load('gradunwarp/core/tests/data/siemens_B_output.npz')['bx']

assert_array_almost_equal(ref_bx, bx)
# changes in legendre function is causing differences at 6th decimal
assert_array_almost_equal(ref_bx, bx, decimal=5)

0 comments on commit eb2d988

Please sign in to comment.