Skip to content

Commit

Permalink
Adjust expected precision in fft filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Dec 13, 2024
1 parent 832704c commit 939293e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/accelerate_tests/base_tests/array_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def test_fft_filter(self):
-9.243618e-07-3.862528e-05j, -8.814586e-06-9.899617e-06j,
-1.578241e-06+1.015331e-05j, -4.759308e-06+2.963323e-05j])

np.testing.assert_array_almost_equal(output.flat[::2000], known_test_output)
np.testing.assert_array_almost_equal(output.flat[::2000], known_test_output, decimal=5)

def test_fft_filter_batched(self):
data = np.zeros((2,256, 512), dtype=COMPLEX_TYPE)
Expand Down Expand Up @@ -391,7 +391,7 @@ def test_fft_filter_batched(self):
-9.243618e-07-3.862528e-05j, -8.814586e-06-9.899617e-06j,
-1.578241e-06+1.015331e-05j, -4.759308e-06+2.963323e-05j])

np.testing.assert_array_almost_equal(output[1].flat[::2000], known_test_output)
np.testing.assert_array_almost_equal(output[1].flat[::2000], known_test_output, decimal=5)


def test_complex_gaussian_filter_fft(self):
Expand Down

0 comments on commit 939293e

Please sign in to comment.