Skip to content

Commit

Permalink
Do not use deprecated SourceDetectionTask.makeSourceCatalog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdswinbank committed Jan 16, 2020
1 parent ad373c5 commit 7d2c0a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/lsst/ip/diffim/imagePsfMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def getSelectSources(self, exposure, sigma=None, doSmooth=True, idFactory=None):
mi -= bkgd
try:
table.setMetadata(self.selectAlgMetadata)
detRet = self.selectDetection.makeSourceCatalog(
detRet = self.selectDetection.run(
table=table,
exposure=exposure,
sigma=sigma,
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ip/diffim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,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.makeSourceCatalog(table, diffim, sigma=psfSigma)
catalog = detectTask.run(table, diffim, sigma=psfSigma)

# Now do the merge.
if doMerge:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def createDipole(w, h, xc, yc, scaling=100.0, fracOffset=1.2):
schema = afwTable.SourceTable.makeMinimalSchema()
task = measAlg.SourceDetectionTask(schema, config=config)
table = afwTable.SourceTable.make(schema)
results = task.makeSourceCatalog(table, exp)
results = task.run(table, exp)
if display:
afwDisplay.Display(frame=4).mtv(image, title="Detection plane")

Expand Down

0 comments on commit 7d2c0a5

Please sign in to comment.