Skip to content

Commit

Permalink
slightly increased tolerance because of default switch from sparse_at…
Browse files Browse the repository at this point in the history
…rices to table-based for nufft.
  • Loading branch information
iancze committed Dec 13, 2023
1 parent 2ca9ff8 commit bb4ea6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fourier_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def test_nufft_accuracy_single_chan(coords, mock_visibility_data_cont, tmp_path)
fig.suptitle("NuFFT Accuracy compared to analytic")
fig.savefig(tmp_path / "nufft_comparison.png", dpi=300)

# should be < 2e-8, based on plot
assert num_output == approx(an_output, abs=2e-8)
# should be < 2.5e-6, based on plot
assert num_output == approx(an_output, abs=2.5e-6)


def test_nufft_cached_accuracy_single_chan(coords, mock_visibility_data_cont, tmp_path):
Expand Down

0 comments on commit bb4ea6d

Please sign in to comment.