Skip to content

Commit

Permalink
Merge pull request #75 from lsst/tickets/DM-7576
Browse files Browse the repository at this point in the history
Remove override of thresholdValue when decorrelation is enabled
  • Loading branch information
djreiss committed Sep 9, 2016
2 parents 8be0346 + ed0453c commit 322976c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/lsst/pipe/tasks/imageDifference.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class ImageDifferenceConfig(pexConfig.Config):
)
decorrelate = pexConfig.ConfigurableField(
target=DecorrelateALKernelTask,
doc="Decorrelate effects of A&L kernel convolution on image difference, only if doSubtract is True",
doc="""Decorrelate effects of A&L kernel convolution on image difference, only if doSubtract is True.
If this option is enabled, then detection.thresholdValue should be set to 5.0 (rather than the
default of 5.5).""",
)
detection = pexConfig.ConfigurableField(
target=SourceDetectionTask,
Expand Down Expand Up @@ -170,10 +172,6 @@ def setDefaults(self):
# DiaSource Detection
self.detection.thresholdPolarity = "both"
self.detection.thresholdValue = 5.5
# If decorrelation is turned on, no need to "hack" the detection threshold to decrease the number of
# false detections, so set it back to 5.0
if self.doDecorrelation and self.doSubtract:
self.detection.thresholdValue = 5.0
self.detection.reEstimateBackground = False
self.detection.thresholdType = "pixel_stdev"

Expand Down

0 comments on commit 322976c

Please sign in to comment.