Skip to content

Commit

Permalink
Fix incorrect projection handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Jan 25, 2024
1 parent 2a84c4d commit 95ae809
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/lsst/cp/verify/repackStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ def repackDetStats(self, detectorStats, detectorDims):
for level in self.config.expectedDistributionLevels:
key = f"LSST CALIB {self.stageName.upper()} {ampName} DISTRIBUTION {level}-PCT"
row[ampName][f"biasDistribution_{level}"] = stats[key]
for ampName, values in detStats["ISR"]["PROJECTION"]["AMP_HPROJECTION"]:
row[ampName]["biasSerialProfile"] = values
for ampName, values in detStats["ISR"]["PROJECTION"]["AMP_VPROJECTION"]:
row[ampName]["biasParallelProfile"] = values

projStats = detStats["ISR"]["PROJECTION"]
for ampName in projStats["AMP_HPROJECTION"].keys():
row[ampName]["biasSerialProfile"] = projStats["AMP_HPROJECTION"][ampName]
for ampName in projStats["AMP_VPROJECTION"].keys():
row[ampName]["biasParallelProfile"] = projStats["AMP_VPROJECTION"][ampName]

# Create output table:
for ampName, stats in row.items():
Expand Down

0 comments on commit 95ae809

Please sign in to comment.