Skip to content

Commit

Permalink
Add comment outlining future work to improve precision thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Oct 18, 2016
1 parent 6fbb6e6 commit 0f214e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/testProcessCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ def testProcessCcd(self):
print("image mean = %r, stdDev = %r" % (imMean, imStdDev))
print("variance mean = %r, stdDev = %r" % (varMean, varStdDev))
print("psf Ixx = %r, Iyy = %r, Ixy = %r" % (psfIxx, psfIyy, psfIxy))


# TODO: these thresholds are larger than they ought to be because the
# background modeling differs in py2 and py3.
# The values asserted here are the precise result that py2 gives. The precision below
# should be tightened and this comment removed in the course of DM-8017.
# Also see: https://community.lsst.org/t/difference-in-py2-and-py3-background-models/1240

self.assertAlmostEqual(bgMean, 191.51595080958367, places=3)
self.assertAlmostEqual(bgStdDev, 0.22492169148323429, places=3)
self.assertEqual(len(icSrc), 28)
Expand Down

0 comments on commit 0f214e6

Please sign in to comment.