Skip to content

Commit

Permalink
Remove commented and unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed May 16, 2023
1 parent cf90295 commit bfdd4cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions python/lsst/ip/diffim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,6 @@ def detectDipoleSources(self, doMerge=True, diffim=None, detectSigma=5.5, grow=3
detectConfig = measAlg.SourceDetectionConfig()
detectConfig.returnOriginalFootprints = False # should be the default

diffimPsf = diffim.getPsf()
psfSigma = diffimPsf.computeShape(diffimPsf.getAveragePosition()).getDeterminantRadius()

# code from imageDifference.py:
detectConfig.thresholdPolarity = "both"
detectConfig.thresholdValue = detectSigma
Expand All @@ -1069,7 +1066,7 @@ def detectDipoleSources(self, doMerge=True, diffim=None, detectSigma=5.5, grow=3
detectTask = measAlg.SourceDetectionTask(schema, config=detectConfig)

table = afwTable.SourceTable.make(schema)
catalog = detectTask.run(table, diffim, sigma=psfSigma)
catalog = detectTask.run(table, diffim)

# Now do the merge.
if doMerge:
Expand Down
3 changes: 0 additions & 3 deletions tests/test_dipoleFitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ def _runDetection(self, dipoleTestImage, maxFootprintArea=None):

table = afwTable.SourceTable.make(schema)
detectResult = detectTask.run(table, testImage.diffim)
# catalog = detectResult.sources
# deblendTask.run(self.dipole, catalog, psf=self.dipole.getPsf())

fpSet = detectResult.positive
fpSet.merge(detectResult.negative, 2, 2, False)
sources = afwTable.SourceCatalog(table)
Expand Down

0 comments on commit bfdd4cc

Please sign in to comment.