Skip to content

Commit

Permalink
testWarpedPsf: Increase tolerance
Browse files Browse the repository at this point in the history
Original tolerance (0.005) was too stringent for
2.5% of random Psfs and transforms.
  • Loading branch information
yalsayyad committed Dec 15, 2016
1 parent 6a421a1 commit 181188a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testWarpedPsf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ BOOST_AUTO_TEST_CASE(warpedPsf)

// TODO: improve this test; the ideal thing would be to repeat with
// finer resolutions and more stringent threshold
BOOST_CHECK(compare(*im,*im2) < 0.005);
BOOST_CHECK(compare(*im,*im2) < 0.006);

// Check that computeBBox returns same dimensions as image
BOOST_CHECK(warped_psf->computeBBox(p).getWidth() == nx);
Expand Down

0 comments on commit 181188a

Please sign in to comment.