Skip to content

Commit

Permalink
Merge branch 'tickets/DM-37806'
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Feb 1, 2023
2 parents 1283521 + 21b8de3 commit 8db5811
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_overscanCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@ def test_parallelOverscanCorrection(self):
self.assertLess(statAfter[0], statBefore[0])

# Test the output value for the serial and parallel overscans
self.assertEqual(oscanResults.overscanMean[0], 2.0)
self.assertEqual(oscanResults.overscanMean[1], 4.5)
self.assertAlmostEqual(oscanResults.overscanMean[0], 2.0, delta=0.001)
self.assertAlmostEqual(oscanResults.overscanMean[1], 4.5, delta=0.001)
if fitType != 'MEDIAN':
# The ramp that has been inserted should be fully
# removed by the overscan fit, removing all of the
# signal. This isn't true of the constant fit, so do
# not test that here.
self.assertLess(statAfter[1], statBefore[1])
self.assertEqual(statAfter[1], 0.0)
self.assertAlmostEqual(statAfter[1], 0.0, delta=0.001)

def test_bleedParallelOverscanCorrection(self):
"""Expect that this should reduce the image variance with a full fit.
Expand Down Expand Up @@ -444,7 +444,7 @@ def test_bleedParallelOverscanCorrection(self):

# Test the output value for the serial and parallel
# overscans.
self.assertEqual(oscanResults.overscanMean[0], 2.0)
self.assertAlmostEqual(oscanResults.overscanMean[0], 2.0, delta=0.001)
self.assertAlmostEqual(oscanResults.overscanMean[1], 4.5, delta=0.001)
self.assertAlmostEqual(oscanResults.residualMean[1], 0.0, delta=0.001)
if fitType != 'MEDIAN':
Expand Down Expand Up @@ -513,7 +513,7 @@ def test_bleedParallelOverscanCorrectionFailure(self):

# Test the output value for the serial and parallel
# overscans.
self.assertEqual(oscanResults.overscanMean[0], 2.0)
self.assertAlmostEqual(oscanResults.overscanMean[0], 2.0, delta=0.001)
# These are the wrong values:
if fitType == 'MEDIAN':
# Check that the constant case is now biased, at 6.5
Expand Down

0 comments on commit 8db5811

Please sign in to comment.