Skip to content

Commit

Permalink
Merge pull request #45 from lsst/tickets/DM-32226
Browse files Browse the repository at this point in the history
DM-32226: Replace `pipe.base.timeMethod` with `utils.timer`
  • Loading branch information
andy-slac committed Oct 20, 2021
2 parents 31051c9 + ced12f0 commit 8afe5cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/meas/extensions/scarlet/scarletDeblendTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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

from .source import modelToHeavy

Expand Down Expand Up @@ -606,7 +607,7 @@ def _addSchemaKeys(self, schema):
# (self.nChildKey, self.tooManyPeaksKey, self.tooBigKey))
# )

@pipeBase.timeMethod
@timeMethod
def run(self, mExposure, mergedSources):
"""Get the psf from each exposure and then run deblend().
Expand All @@ -629,7 +630,7 @@ def run(self, mExposure, mergedSources):
"""
return self.deblend(mExposure, mergedSources)

@pipeBase.timeMethod
@timeMethod
def deblend(self, mExposure, catalog):
"""Deblend a data cube of multiband images
Expand Down

0 comments on commit 8afe5cb

Please sign in to comment.