Skip to content

Commit

Permalink
Hide DirectMatch.refObjLoader configs in PhotoCal.
Browse files Browse the repository at this point in the history
Since PhotoCalTask passes a refObjLoader directly to DirectMatchTask, the
DirecMatch's refObjLoader config settings do nothing. Switching to
DirectMatchConfigWithoutLoader eliminates these settings.
  • Loading branch information
ctslater committed Feb 1, 2018
1 parent 2f8d8ba commit 6c5987b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/pipe/tasks/photoCal.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import lsst.pipe.base as pipeBase
from lsst.afw.image import abMagFromFlux, abMagErrFromFluxErr, fluxFromABMag, Calib
import lsst.afw.math as afwMath
from lsst.meas.astrom import DirectMatchTask, DirectMatchConfig
from lsst.meas.astrom import DirectMatchTask, DirectMatchConfigWithoutLoader
import lsst.afw.display.ds9 as ds9
from lsst.meas.algorithms import getRefFluxField, ReserveSourcesTask
from .colorterms import ColortermLibrary
Expand All @@ -45,7 +45,8 @@

class PhotoCalConfig(pexConf.Config):
"""Config for PhotoCal"""
match = pexConf.ConfigField("Match to reference catalog", DirectMatchConfig)
match = pexConf.ConfigField("Match to reference catalog",
DirectMatchConfigWithoutLoader)
reserve = pexConf.ConfigurableField(target=ReserveSourcesTask, doc="Reserve sources from fitting")
fluxField = pexConf.Field(
dtype=str,
Expand Down

0 comments on commit 6c5987b

Please sign in to comment.