Skip to content

Commit

Permalink
Use saturation level in the yaml file if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertLuptonTheGood committed Aug 4, 2020
1 parent 92e9723 commit b0c4a8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/lsst/obs/lsst/script/generateCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ def indent():
print(indent(), "<< : *%s_%s" % (ampName, detectorType), file=fd)
print(indent(), "gain : %g" % (amplifierData[ampName]['gain']), file=fd)
print(indent(), "readNoise : %g" % (amplifierData[ampName]['readNoise']), file=fd)
saturation = amplifierData[ampName].get('saturation')
if saturation: # if known, override the per-CCD-type default from cameraHeader.yaml
print(indent(), "saturation : %g" % (saturation), file=fd)
nindent -= 1
nindent -= 1

Expand Down

0 comments on commit b0c4a8a

Please sign in to comment.