Skip to content

Commit

Permalink
Skip coadding sub-region early if there is no valid data.
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Dec 4, 2018
1 parent defe6db commit b7b596a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/pipe/tasks/dcrAssembleCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ def run(self, skyInfo, tempExpRefList, imageScalerList, weightList,
imageScalerList, weightList,
spanSetMaskList,
stats.ctrl)
if convergenceMetric == 0:
self.log.warn("Coadd %s had convergence metric of 0.0 which is most likely"
" due to there being no valid data in the region.", subBBox)
break
convergenceCheck = (convergenceList[-1] - convergenceMetric)/convergenceMetric
if convergenceCheck < 0:
self.log.warn("Coadd %s diverged before reaching maximum iterations or"
Expand Down

0 comments on commit b7b596a

Please sign in to comment.