Skip to content

Commit

Permalink
Reenable reEstimateBackground and make it use same minimal config
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Mar 8, 2023
1 parent 5cfdf02 commit fbf69ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/summit/utils/astrometry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def runCharactierizeImage(exp, snr, minPix):
charConfig.detection.minPixels = minPix
charConfig.detection.thresholdValue = snr
charConfig.detection.includeThresholdMultiplier = 1
charConfig.detection.reEstimateBackground = False

# fit background with the most simple thing possible as we don't need
# much sophistication here. weighting=False is *required* for very
Expand All @@ -274,6 +273,9 @@ def runCharactierizeImage(exp, snr, minPix):
charConfig.background.binSize = max(exp.getWidth(), exp.getHeight())
charConfig.background.weighting = False

# set this to use all the same minimal settings as those above
charConfig.detection.background = charConfig.background

charTask = CharacterizeImageTask(config=charConfig)

charResult = charTask.run(exp)
Expand Down

0 comments on commit fbf69ed

Please sign in to comment.