File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 88from aspire .noise import CustomNoiseAdder , WhiteNoiseAdder , WhiteNoiseEstimator
99from aspire .operators import FunctionFilter , ScalarFilter
1010from aspire .source .simulation import Simulation
11- from aspire .utils import utest_tolerance
1211from aspire .volume import AsymmetricVolume
1312
1413DATA_DIR = os .path .join (os .path .dirname (__file__ ), "saved_test_data" )
@@ -62,7 +61,12 @@ def test_white_noise_estimator_clean_corners(sim_fixture):
6261 noise_variance = noise_estimator .estimate ()
6362 # Using a compactly supported volume should yield
6463 # virtually no noise in the image corners.
65- assert np .isclose (noise_variance , 0 , atol = utest_tolerance (sim_fixture .dtype ))
64+ assert np .isclose (noise_variance , 0 , atol = 1e-6 )
65+ # 1e-6 was chosen by running the unit test suite 10k (x4 fixture expansion) times.
66+ # min=7.544584748608862e-12 max=1.6798412007391812e-07
67+ # mean=1.0901885456753326e-09 var=5.27460957578949e-18
68+ # To reduce the randomness would require a increasing simulation `n`
69+ # and/or increasing resolution. Both would increase test time.
6670
6771
6872def test_adder_reprs (adder ):
You can’t perform that action at this time.
0 commit comments