Details
-
Type:
Story
-
Status: Invalid
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_deblender
-
Labels:
-
Story Points:1
-
Team:Data Release Production
Description
Seeing a future warning emanating from meas_deblender when running SourceDeblendTask:
/opt/lsst/software/stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_deblender/14.0-1-g8b7e855+32/python/lsst/meas/deblender/plugins.py:455: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions. |
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`. |
X1, r1, rank1, s1 = np.linalg.lstsq(Aw[:, :NT1], bw)
|
Harmless for now, however our demo/tutorials trip it numerous times so it would be great if we could fix it.
Fred Moolekamp Jim told me to assign it to you, don't hate me.
At the suggestion of Robert Lupton we should confirm that this is the expected behavior. The code in question is attempting to fit a child's flux to a multiple of the PSF. It appears that this can fail if the model doesn't match the PSF. The value of `rcond` determines what to do with singular values, which appears to have changed and has triggered this warning, which is itself in a try except block.
I would recommend not spending too much (any) time on this. This code is not used at all in the new deblender and the time it would take to sufficiently test and understand this behavior does not seem like a good use of time.