Skip to content

Commit

Permalink
The post-linear fit should use the linear fit parameters as starting …
Browse files Browse the repository at this point in the history
…values.

This makes sure that when using the photodiode (much larger scaling) that
things converge correctly when checking residuals.
  • Loading branch information
erykoff committed Sep 27, 2024
1 parent bf8ee26 commit 7eb00a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/cp/pipe/cpLinearitySolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7eb00a8

Please sign in to comment.