Skip to content

Commit

Permalink
increase overall requested plan accuracy for adjoint type 3 transform…
Browse files Browse the repository at this point in the history
…s. Perhaps 1e-6 is just a bit too close to the machine epsilon for single precision
  • Loading branch information
mreineck committed Feb 19, 2025
1 parent b7d7ce1 commit f54a1dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/finufft/test/test_finufft_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_finufft3_plan(dtype, dim, n_source_pts, n_target_pts, output_arg):
utils.verify_type3(source_pts, source_coefs, target_pts, target_coefs, 1e-6)

# test adjoint type 3
plan = Plan(3, dim, dtype=dtype, isign=-1)
plan = Plan(3, dim, dtype=dtype, isign=-1, eps=1e-5)

plan.setpts(*target_pts, *((None,) * (3 - dim)), *source_pts)

Expand All @@ -131,7 +131,6 @@ def test_finufft3_plan(dtype, dim, n_source_pts, n_target_pts, output_arg):
target_coefs = np.empty(n_target_pts, dtype=dtype)
plan.execute_adjoint(source_coefs, out=target_coefs)

# FIXME: increase tolerance temporarily
utils.verify_type3(source_pts, source_coefs, target_pts, target_coefs, 1e-5)


Expand Down

0 comments on commit f54a1dd

Please sign in to comment.