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 Jul 19, 2023
1 parent d28da42 commit fd23eea
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 fd23eea

Please sign in to comment.