Skip to content

Commit

Permalink
Change key names to match verifyStats.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Apr 27, 2022
1 parent ef0f3c4 commit af3115b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
24 changes: 4 additions & 20 deletions python/lsst/cp/verify/verifyCalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,36 +105,20 @@ def run(self, inputCalib):
Notes
-----
The outputStats should have a yaml representation of the form
(with STAT and TEST being the appropriate statistic and test
names)
AMP:
Amp1:
STAT: value
STAT2: value2
Amp2:
Amp3:
DET:
STAT: value
STAT2: value
CATALOG:
STAT: value
STAT2: value
VERIFY:
DET:
TEST: boolean
CATALOG:
TEST: boolean
AMP:
Amp1:
TEST: boolean
TEST2: boolean
Amp2:
Amp3:
TEST: boolean
SUCCESS: boolean
"""
outputStats = {}

outputStats['DETECTOR'] = self.detectorStatistics(inputCalib)
outputStats['DET'] = self.detectorStatistics(inputCalib)
outputStats['VERIFY'], outputStats['SUCCESS'] = self.verify(inputCalib, outputStats)

return pipeBase.Struct(
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/cp/verify/verifyCrosstalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def verify(self, calib, statisticsDict):
A boolean indicating whether all tests have passed.
"""
verifyStats = {}
detectorStats = statisticsDict['DETECTOR']
detectorStats = statisticsDict['DET']
success = True
verifyStats['NO_SIGNIFICANT_DETECTION'] = True

Expand Down

0 comments on commit af3115b

Please sign in to comment.