Skip to content

Commit

Permalink
Additionally raise NoWorkFound when there are no images to coadd.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Nov 8, 2023
1 parent 2949656 commit 9cfe9e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/pipe/tasks/selectImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def run(self, visitSummaries, skyMap, dataId):

if len(output) == 0:
self.log.info("All images rejected in BestSeeingSelectVisitsTask.")
raise pipeBase.NoWorkFound('No good images found')
else:
self.log.info(
"%d images selected with FWHM range of %f--%f arcseconds",
Expand Down

0 comments on commit 9cfe9e4

Please sign in to comment.