Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-32226: Replace pipe.base.timeMethod with utils.timer #85

Merged
merged 1 commit into from
Oct 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/lsst/meas/deblender/sourceDeblendTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import lsst.afw.image as afwImage
import lsst.afw.detection as afwDet
import lsst.afw.table as afwTable
from lsst.utils.timer import timeMethod

logger = lsst.log.Log.getLogger("meas.deblender.deblend")

Expand Down Expand Up @@ -262,7 +263,7 @@ def addSchemaKeys(self, schema):
doc="Same as deblend_n_peaks, but the number of peaks "
"in the parent footprint")

@pipeBase.timeMethod
@timeMethod
def run(self, exposure, sources):
"""Get the PSF from the provided exposure and then run deblend.

Expand All @@ -282,7 +283,7 @@ def _getPsfFwhm(self, psf, bbox):
# https://dev.lsstcorp.org/trac/ticket/3030
return psf.computeShape().getDeterminantRadius() * 2.35

@pipeBase.timeMethod
@timeMethod
def deblend(self, exposure, srcs, psf):
"""Deblend.

Expand Down