Skip to content

Commit

Permalink
Merge branch 'tickets/DM-26677'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Sep 10, 2020
2 parents 47d5604 + e7ab798 commit cda7bf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/lsst/ip/diffim/getTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ def run(self, tractInfo, patchList, skyCorners, availableCoaddRefs,
patchNumber = tractInfo.getSequentialPatchIndex(patchInfo)
patchSubBBox = patchInfo.getOuterBBox()
patchSubBBox.clip(coaddBBox)
if patchNumber not in availableCoaddRefs:
self.log.warn(f"skip patch={patchNumber}; patch does not exist for this coadd")
continue
if patchSubBBox.isEmpty():
self.log.info(f"skip tract={availableCoaddRefs[patchNumber]['tract']}, "
f"patch={patchNumber}; no overlapping pixels")
Expand Down

0 comments on commit cda7bf1

Please sign in to comment.