Skip to content

Commit

Permalink
reference metadata directly.
Browse files Browse the repository at this point in the history
Fix linter error.
  • Loading branch information
plazas committed Feb 22, 2023
1 parent 044ab3b commit 9873472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipelines/VerifyLinearity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ tasks:
class: lsst.cp.verify.CpVerifyCalibMergeTask
config:
connections.inputStats: 'verifyLinearityDetStats'
connections.outputStats: 'verifyLinearityStats'
connections.outputStats: 'verifyLinearityStats'
4 changes: 2 additions & 2 deletions python/lsst/cp/verify/verifyLinearity.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def amplifierStatistics(self, inputCalib, camera=None):
outputStatistics : `dict` [`str`, scalar]
A dictionary of the statistics measured and their values.
"""
calibMetadata = inputCalib.getMetadata().toDict()
calibMetadata = inputCalib.getMetadata()
detId = calibMetadata['DETECTOR']
detector = camera[detId]
outputStatistics = {amp.getName(): {} for amp in detector}
Expand Down Expand Up @@ -142,7 +142,7 @@ def verify(self, calib, statisticsDict, camera=None):
"""
verifyStats = {}
success = True
calibMetadata = calib.getMetadata().toDict()
calibMetadata = calib.getMetadata()
detId = calibMetadata['DETECTOR']
detector = camera[detId]

Expand Down

0 comments on commit 9873472

Please sign in to comment.