Skip to content

Commit

Permalink
Migrate to lsst.log for the standalone tests/fit_psf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsin-Fang Chiang committed Aug 4, 2016
1 parent a04cf77 commit 48fe2d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/fit_psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import lsst.afw.detection as afwDet
import lsst.afw.geom as afwGeom
import lsst.afw.image as afwImage
import lsst.pex.logging as pexLogging
from lsst.log import Log
import lsst.meas.algorithms as measAlg
from lsst.meas.deblender.baseline import _fitPsf, CachingPsf, PerPeak

Expand Down Expand Up @@ -107,10 +107,11 @@ def makePeak(x, y):

pkres = PerPeak()

loglvl = pexLogging.Log.INFO
loglvl = Log.INFO
#if verbose:
# loglvl = pexLogging.Log.DEBUG
log = pexLogging.Log(pexLogging.Log.getDefaultLog(), 'tests.fit_psf', loglvl)
# loglvl = Log.DEBUG
log = Log.getLogger('tests.fit_psf')
log.setLevel(loglvl)

cpsf = CachingPsf(psf1)

Expand Down

0 comments on commit 48fe2d3

Please sign in to comment.