Skip to content

Commit

Permalink
Fix incorrect subimage test
Browse files Browse the repository at this point in the history
This test should have always used the subimage, not the full image.
  • Loading branch information
parejkoj committed Oct 18, 2024
1 parent e5a4e9a commit 729c6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_photoCalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ def testCalibrateImageNonConstantSubimage(self):

# same test, but without using the calibration error
expect = makeCalibratedMaskedImageNoCalibrationError(image, mask, variance, outImage)
result = photoCalib.calibrateImage(maskedImage, includeScaleUncertainty=False)
self.assertMaskedImagesAlmostEqual(expect, result)
result = photoCalib.calibrateImage(subImage, includeScaleUncertainty=False)
self.assertMaskedImagesAlmostEqual(expect.subset(subBox), result)
uncalibrated = photoCalib.uncalibrateImage(result, includeScaleUncertainty=False)
self.assertMaskedImagesAlmostEqual(subImage, uncalibrated)

Expand Down

0 comments on commit 729c6ff

Please sign in to comment.