Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/lsst/meas/algorithms/adaptive_thresholds.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def run(self, table, exposure, initialThreshold=None, initialThresholdMultiplier
adaptiveDetectionConfig.reEstimateBackground = False
adaptiveDetectionConfig.doTempWideBackground = True
adaptiveDetectionConfig.tempWideBackground.binSize = 512
adaptiveDetectionConfig.thresholdPolarity = "both"
adaptiveDetectionConfig.thresholdPolarity = "positive"
self.log.info("Using adaptive detection with thresholdValue = %.2f and multiplier = %.1f",
adaptiveDetectionConfig.thresholdValue,
adaptiveDetectionConfig.includeThresholdMultiplier)
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/meas/algorithms/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def applyThreshold(self, middle, bbox, factor=1.0, factorNeg=None):
self.config.minPixels
)
results.positive.setRegion(bbox)
if self.config.reEstimateBackground or self.config.thresholdPolarity != "positive":
if self.config.thresholdPolarity != "positive":
results.negativeThreshold = self.makeThreshold(middle, "negative", factor=factorNeg)
results.negative = afwDet.FootprintSet(
middle,
Expand Down
Loading