Skip to content

Commit

Permalink
Move default configs from ProcessCcd to subtasks
Browse files Browse the repository at this point in the history
so that commandline task and pipeline behave the same
  • Loading branch information
arunkannawadi committed Nov 27, 2019
1 parent 464b0d2 commit 2581775
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions python/lsst/pipe/tasks/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ class CalibrateConfig(pipeBase.PipelineTaskConfig, pipelineConnections=Calibrate
"normal calexp but as a fakes_calexp."
)

def setDefaults(self):
super().setDefaults()
self.detection.doTempLocalBackground = False
self.deblend.maxFootprintSize = 2000

def validate(self):
super().validate()
astromRefCatGen2 = getattr(self.astromRefObjLoader, "ref_dataset_name", None)
Expand Down
1 change: 1 addition & 0 deletions python/lsst/pipe/tasks/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def setDefaults(self):
# but these are the values we have been using
self.detection.thresholdValue = 5.0
self.detection.includeThresholdMultiplier = 10.0
self.detection.doTempLocalBackground = False
# do not deblend, as it makes a mess
self.doDeblend = False
# measure and apply aperture correction; note: measuring and applying aperture
Expand Down
3 changes: 0 additions & 3 deletions python/lsst/pipe/tasks/processCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ class ProcessCcdConfig(pexConfig.Config):
def setDefaults(self):
self.isr.doWrite = False
self.charImage.doWriteExposure = False
self.charImage.detection.doTempLocalBackground = False
self.calibrate.detection.doTempLocalBackground = False
self.calibrate.deblend.maxFootprintSize = 2000

## \addtogroup LSST_task_documentation
## \{
Expand Down

0 comments on commit 2581775

Please sign in to comment.