Skip to content

Commit

Permalink
Update run method call of SourceDeblendTask
Browse files Browse the repository at this point in the history
The run method of SourceDeblendTask has been updated in the previous
commit to extract the psf from the provided exposure. This commit
updates all calls of the run method to match the new interface.
  • Loading branch information
AstroVPK committed Jun 13, 2016
1 parent 93ad693 commit 9fe9d8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion python/lsst/pipe/tasks/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def run(self, exposure, exposureIdInfo, background=None, allowApCorr=True):
self.deblend.run(
exposure = exposure,
sources = sourceCat,
psf = exposure.getPsf(),
)

self.measure(
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/multiBand.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def run(self, patchRef):
exposure = patchRef.get(self.config.coaddName + "Coadd_calexp", immediate=True)
sources = self.readSources(patchRef)
if self.config.doDeblend:
self.deblend.run(exposure, sources, exposure.getPsf())
self.deblend.run(exposure, sources)

bigKey = sources.schema["deblend_parentTooBig"].asKey()
numBig = sum((s.get(bigKey) for s in sources)) # catalog is non-contiguous so can't extract column
Expand Down

0 comments on commit 9fe9d8d

Please sign in to comment.