Skip to content

Commit

Permalink
fixup during pipeline integration
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jul 26, 2023
1 parent da196b1 commit ff3c5f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/lsst/pipe/tasks/calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import lsst.pex.config as pexConfig
import lsst.pipe.base as pipeBase
from lsst.pipe.base import connectionTypes
from lsst.utils.timer import timeMethod

from . import measurePsf, repair, setPrimaryFlags, photoCal, computeExposureSummaryStats


Expand Down Expand Up @@ -309,6 +311,9 @@ def setDefaults(self):
# phot_g_mean is the primary Gaia band for all input bands.
self.astrometry_ref_loader.anyFilterMapsToThis = "phot_g_mean"

# Reject magnitude outliers (TODO DM-39796: should be task default)
self.astrometry.doMagnitudeOutlierRejection = True

# Do not subselect during fitting; we already selected good stars.
self.astrometry.sourceSelector = "null"
self.photometry.match.sourceSelection.retarget(sourceSelector.NullSourceSelectorTask)
Expand Down Expand Up @@ -384,6 +389,7 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):

butlerQC.put(outputs, outputRefs)

@timeMethod
def run(self, *, exposure):
"""Find stars and perform psf measurement, then do a deeper detection
and measurement and calibrate astrometry and photometry from that.
Expand Down

0 comments on commit ff3c5f9

Please sign in to comment.