Skip to content

Commit

Permalink
Bugfix for template retrieval introduced in DM-26567
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Sep 10, 2020
1 parent 47d5604 commit e1ef852
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/ip/diffim/getTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ def run(self, tractInfo, patchList, skyCorners, availableCoaddRefs,
self.log.info(f"skip tract={availableCoaddRefs[patchNumber]['tract']}, "
f"patch={patchNumber}; no overlapping pixels")
continue
if patchNumber not in availableCoaddRefs:
self.log.warn(f"skip tract={availableCoaddRefs[patchNumber]['tract']}, "
f"patch={patchNumber}; patch does not exist for this coadd")
continue

if self.config.coaddName == 'dcr':
patchInnerBBox = patchInfo.getInnerBBox()
Expand Down

0 comments on commit e1ef852

Please sign in to comment.