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 296864c commit 74cfc74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/multiBand.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def run(self, exposure, idFactory, expId):
if self.config.doInsertFakes:
self.insertFakes.run(exposure, background=backgrounds)
table = afwTable.SourceTable.make(self.schema, idFactory)
detections = self.detection.makeSourceCatalog(table, exposure, expId=expId)
detections = self.detection.run(table, exposure, expId=expId)
sources = detections.sources
fpSets = detections.fpSets
if hasattr(fpSets, "background") and fpSets.background:
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/snapCombine.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def run(self, snap0, snap1, defects=None):
diffExp.setPsf(psf)
table = afwTable.SourceTable.make(self.schema)
table.setMetadata(self.algMetadata)
detRet = self.detection.makeSourceCatalog(table, diffExp)
detRet = self.detection.run(table, diffExp)
sources = detRet.sources
fpSets = detRet.fpSets
if self.config.doMeasurement:
Expand Down

0 comments on commit 74cfc74

Please sign in to comment.