Skip to content

Commit

Permalink
Update linearity info in amp info catalogs
Browse files Browse the repository at this point in the history
There is no linearity correction for obs_test, but the amp info
catalogs said otherwise. This should have been fixed in DM-5462.
  • Loading branch information
r-owen committed Jun 8, 2016
1 parent 06db656 commit 69d9b07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/lsst/obs/test/testCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import lsst.afw.cameraGeom as cameraGeom
import lsst.afw.geom as afwGeom
from lsst.afw.table import AmpInfoCatalog, AmpInfoTable, LL
from lsst.afw.cameraGeom import NullLinearityType
from lsst.afw.cameraGeom.cameraFactory import makeDetector

class TestCamera(cameraGeom.Camera):
Expand Down Expand Up @@ -119,10 +120,9 @@ def _makeAmpInfoCatalog(self):
xRawExtent = xDataExtent + xBiasExtent
yRawExtent = yDataExtent
readNoise = 3.975 # amplifier read noise, in e-
linearityType = "PROPORTIONAL"
linearityThreshold = 0
linearityMax = 65535
linearityCoeffs = [linearityThreshold, linearityMax]
saturationLevel = 65535
linearityType = NullLinearityType
linearityCoeffs = [0, 0, 0, 0]

schema = AmpInfoTable.makeMinimalSchema()

Expand Down Expand Up @@ -175,7 +175,7 @@ def _makeAmpInfoCatalog(self):
record.setReadoutCorner(readCorner)
record.setGain(gain)
record.setReadNoise(readNoise)
record.setSaturation(linearityMax)
record.setSaturation(saturationLevel)
record.setSuspectLevel(float("nan"))
record.setLinearityCoeffs([float(val) for val in linearityCoeffs])
record.setLinearityType(linearityType)
Expand Down

0 comments on commit 69d9b07

Please sign in to comment.