Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: cp_pipe
-
Labels:None
-
Story Points:5
-
Epic Link:
-
Team:Data Release Production
Description
import lsst.cp.pipe.makeBrighterFatterKernel as kernelGen
|
biases, means, xcorrs = kernelGen.calcBiasCorr([70000, 90000, 110000], (2000,1000), useTaskCode=False, nSigma=5, repeats=3)
|
and
biases2, means2, xcorrs2 = kernelGen.calcBiasCorr([70000, 90000, 110000], (2000,1000), useTaskCode=True, nSigma=5, repeats=3)
|
differ, and they shouldn't. Investigate and fix.
Furthermore, as per what was originally DM-15401: something seems to not be quite right in the calculation of cross-correlations in MakeBrighterFatterKernelTask, as the sum of the cross-correlations are coming out much higher than they should be (I think, based on the code it was ported from at least).
Find out why, and once that's done, put the config value xcorrCheckRejectLevel back to the nominal value of 0.2 (or was it 0.1, check Will's code), if appropriate.
Given that these may be related, these are being combined.
Attachments
Issue Links
- has to be done after
-
DM-13293 Make BF kernel measurement code fully stack compliant
- Done
-
DM-14190 Port the BF simulation code so that the biasCorr parameter can be measured
- Done
- relates to
-
DM-15401 Fix default xcorrCheckRejectLevel value back to nominal
- Invalid
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
How different: really quite different. For nsigma=5 (the nominal setting) the task code calculates effectively no bias (so a value of 1), whereas Will gets 0.9241.
To reproduce:
import lsst.cp.pipe.makeBrighterFatterKernel as makeBf
makeBf.calcBiasCorr([50000,100000],(1000,2000), useTaskCode=True)
will give very different bias results to
makeBf.calcBiasCorr([50000,100000],(1000,2000), useTaskCode=False
If you change the value of the number of sigma clipped to they become more similar but don't converge (and we'd expect them to always be the same anyway, so convergence isn't really that interesting, just mentioning it as debug info, and because this highlights the fact that the task code doesn't always just put out something consistent with 1 within errors).
The useTaskCode=False configuration reproduces the result from Will, which was appropriate for HSC use.