Skip to content

Commit

Permalink
Fix PTC verification errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Dec 13, 2023
1 parent 1b58a49 commit 1b4f318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/lsst/cp/verify/verifyCalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CpVerifyCalibConnections(pipeBase.PipelineTaskConnections,
deferLoad=True,
)

inputCalib = cT.Input(
inputCalib = cT.PrerequisiteInput(
name="calib",
doc="Input calib to calculate statistics for.",
storageClass="IsrCalib",
Expand Down
7 changes: 3 additions & 4 deletions python/lsst/cp/verify/verifyPtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CpVerifyPtcConnections(CpVerifyCalibConnections,


class CpVerifyPtcConfig(CpVerifyCalibConfig,
pipelineConnections=CpVerifyPtcConnections):
pipelineConnections=CpVerifyCalibConnections):
"""Inherits from base CpVerifyCalibConfig."""

def setDefaults(self):
Expand Down Expand Up @@ -143,10 +143,9 @@ def amplifierStatistics(self, inputCalib, camera=None):
outputStatistics[ampName]['PTC_TURNOFF'] = inputCalib.ptcTurnoff[ampName]
outputStatistics[ampName]['PTC_FIT_TYPE'] = ptcFitType
if ptcFitType == 'EXPAPPROXIMATION':
outputStatistics[ampName]['PTC_BFE_A00'] = inputCalib.ptcFitPars[ampName][0]
outputStatistics[ampName]['PTC_BFE_A00'] = float(inputCalib.ptcFitPars[ampName][0])
if ptcFitType == 'FULLCOVARIANCE':
outputStatistics[ampName]['PTC_BFE_A00'] = inputCalib.aMatrix[ampName][0][0]

outputStatistics[ampName]['PTC_BFE_A00'] = float(inputCalib.aMatrix[ampName][0][0])
return outputStatistics

def verify(self, calib, statisticsDict, camera=None):
Expand Down

0 comments on commit 1b4f318

Please sign in to comment.