From 7eb00a8d2a029404951a5c8b088be0a83faa91c4 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Fri, 27 Sep 2024 11:09:24 -0700 Subject: [PATCH] The post-linear fit should use the linear fit parameters as starting values. This makes sure that when using the photodiode (much larger scaling) that things converge correctly when checking residuals. --- python/lsst/cp/pipe/cpLinearitySolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/cp/pipe/cpLinearitySolve.py b/python/lsst/cp/pipe/cpLinearitySolve.py index 1bdd35a1..566cc4d9 100644 --- a/python/lsst/cp/pipe/cpLinearitySolve.py +++ b/python/lsst/cp/pipe/cpLinearitySolve.py @@ -685,7 +685,7 @@ def run(self, inputPtc, dummy, camera, inputDims, residuals = np.full_like(linearizeModel, np.nan) else: postLinearFit, _, _, _ = irlsFit( - [0.0, 100.0], + linearFit, inputAbscissa[mask], linearizeModel[mask], funcPolynomial,