Skip to content

Commit

Permalink
Fix off-by-one in BF max iteration message.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Aug 29, 2023
1 parent 7e1160d commit 4b7338c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/ip/isr/isrTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ def run(self, ccdExposure, *, camera=None, bias=None, linearizer=None,
self.config.brighterFatterApplyGain,
bfGains
)
if bfResults[1] == self.config.brighterFatterMaxIter:
if bfResults[1] == self.config.brighterFatterMaxIter - 1:
self.log.warning("Brighter-fatter correction did not converge, final difference %f.",
bfResults[0])
else:
Expand Down

0 comments on commit 4b7338c

Please sign in to comment.