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 dbb1069
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(f'No good images found.')

Check failure on line 530 in python/lsst/pipe/tasks/selectImages.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

F541

f-string is missing placeholders
else:
self.log.info(
"%d images selected with FWHM range of %f--%f arcseconds",
Expand Down

0 comments on commit dbb1069

Please sign in to comment.