Skip to content

Commit

Permalink
Merge branch 'tickets/DM-26595'
Browse files Browse the repository at this point in the history
  • Loading branch information
plazas committed Sep 3, 2020
2 parents d915bd2 + b546600 commit 4dc13f4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions python/lsst/cp/pipe/ptc.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,15 @@ def runDataRef(self, dataRef, visitPairs):
allTags = []
for (v1, v2) in visitPairs:
# Get postISR exposures.
dataRef.dataId['expId'] = v1
exp1 = dataRef.get("postISRCCD", immediate=True)
dataRef.dataId['expId'] = v2
exp2 = dataRef.get("postISRCCD", immediate=True)
try:
dataRef.dataId['expId'] = v1
exp1 = dataRef.get("postISRCCD", immediate=True)
dataRef.dataId['expId'] = v2
exp2 = dataRef.get("postISRCCD", immediate=True)
except RuntimeError:
self.log.warn(f"postISR exposure for either expId {v1} or expId {v2} could not be retreived. "
"Ignoring flat pair.")
continue
del dataRef.dataId['expId']

checkExpLengthEqual(exp1, exp2, v1, v2, raiseWithMessage=True)
Expand Down

0 comments on commit 4dc13f4

Please sign in to comment.