Skip to content

Commit

Permalink
Add row means variance slope to repacking stats
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
plazas committed Jan 30, 2024
1 parent 2e56924 commit 41fe63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/lsst/cp/verify/repackStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def repackDetStats(self, detectorStats, detectorDims):
"ptcFitType": stats["PTC_FIT_TYPE"],
"ptcBfeA00": stats["PTC_BFE_A00"],
"ptcRowMeanVariance": stats["PTC_ROW_MEAN_VARIANCE"],
"ptcRowMeanVarianceSlope": stats["PTC_ROW_MEAN_VARIANCE_SLOPE"],
"ptcMaxRawMeans": stats["PTC_MAX_RAW_MEANS"],
"ptcRawMeans": stats["PTC_RAW_MEANS"],
"ptcExpIdmask": stats["PTC_EXP_ID_MASK"],
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/cp/verify/verifyPtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def amplifierStatistics(self, inputCalib, camera=None):
slope = sum(rowMeanVar) / sum(2.*signal/numCols)
except ZeroDivisionError:
slope = np.nan
outputStatistics[ampName]['ROW_MEAN_VARIANCE_SLOPE'] = float(slope)
outputStatistics[ampName]['PTC_ROW_MEAN_VARIANCE_SLOPE'] = float(slope)

return outputStatistics

Expand Down

0 comments on commit 41fe63b

Please sign in to comment.