Skip to content

Commit

Permalink
Merge pull request #955 from lsst/tickets/DM-45002
Browse files Browse the repository at this point in the history
DM-45002: Update calibrate to always run the normalized calibration.
  • Loading branch information
erykoff authored Jul 9, 2024
2 parents 67c8e60 + 542f734 commit d598c5c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions python/lsst/pipe/tasks/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,15 @@ def run(self, exposure, background=None,
exposureId=idGenerator.catalog_id,
)
if self.config.doNormalizedCalibration:
if exposure.getInfo().getApCorrMap() is None:
self.log.warning("Image does not have valid aperture correction map for %r; "
"skipping normalized calibration flux", idGenerator)
else:
self.normalizedCalibrationFlux.run(
exposure=exposure,
catalog=sourceCat,
)
self.normalizedCalibrationFlux.run(
exposure=exposure,
catalog=sourceCat,
)
if self.config.doApCorr:
apCorrMap = exposure.getInfo().getApCorrMap()
if apCorrMap is None:
self.log.warning("Image does not have valid aperture correction map for %r; "
"skipping aperture correction", idGenerator)
"skipping aperture correction", idGenerator.catalog_id)
else:
self.applyApCorr.run(
catalog=sourceCat,
Expand Down

0 comments on commit d598c5c

Please sign in to comment.