Skip to content

Commit

Permalink
Use lsst. prefix for logger names
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 8, 2021
1 parent 1aa63df commit 0751030
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_linearize.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def setUp(self):
# Spline coefficients: should match a 1e-6 Squared solution
self.splineCoeffs = np.array([-100, 0.0, 1000, 2000, 3000, 4000, 5000,
0.0, 0.0, 1.0, 4.0, 9.0, 16.0, 25.0])
self.log = logging.getLogger("ip.isr.testLinearizer")
self.log = logging.getLogger("lsst.ip.isr.testLinearizer")

def tearDown(self):
# destroy LSST objects so memory test passes.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_linearizeLookupTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def testBasics(self):
inImage = makeRampImage(bbox=self.bbox, start=-5, stop=250, imageClass=imageClass)
table = self.makeTable(inImage)

log = logging.getLogger("ip.isr.LinearizeLookupTable")
log = logging.getLogger("lsst.ip.isr.LinearizeLookupTable")

measImage = inImage.Factory(inImage, True)
llt = Linearizer(table=table, detector=self.detector)
Expand All @@ -96,7 +96,7 @@ def testBasics(self):
self.assertImagesAlmostEqual(refImage, measImage)

# make sure logging is accepted
log = logging.getLogger("ip.isr.LinearizeLookupTable")
log = logging.getLogger("lsst.ip.isr.LinearizeLookupTable")
linRes = llt.applyLinearity(image=measImage, detector=self.detector, log=log)

def testErrorHandling(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_linearizeSquared.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def testBasics(self):
self.assertImagesAlmostEqual(refImage, measImage)

# make sure logging is accepted
log = logging.getLogger("ip.isr.LinearizeSquared")
log = logging.getLogger("lsst.ip.isr.LinearizeSquared")
linRes = linCorr.applyLinearity(image=measImage, detector=self.detector, log=log)

def testKnown(self):
Expand Down

0 comments on commit 0751030

Please sign in to comment.