From fd23eea0a1baea5654ff6dc00d8d6228bb4d3659 Mon Sep 17 00:00:00 2001 From: Christopher Waters Date: Wed, 19 Jul 2023 13:05:54 -0700 Subject: [PATCH] Fix off-by-one in BF max iteration message. --- python/lsst/ip/isr/isrTask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/ip/isr/isrTask.py b/python/lsst/ip/isr/isrTask.py index 3f3b9600c..fe4f9f594 100644 --- a/python/lsst/ip/isr/isrTask.py +++ b/python/lsst/ip/isr/isrTask.py @@ -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: