From 835696ea58964ac3ed613f7d9ca191e825e755ae Mon Sep 17 00:00:00 2001 From: Fred Moolekamp Date: Thu, 16 Jan 2025 16:48:46 -0500 Subject: [PATCH] Modify variance in isPrimary task to fix bad data --- tests/test_isPrimaryFlag.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_isPrimaryFlag.py b/tests/test_isPrimaryFlag.py index e7ebb535c..3390fff86 100755 --- a/tests/test_isPrimaryFlag.py +++ b/tests/test_isPrimaryFlag.py @@ -252,6 +252,11 @@ def testIsScarletPrimaryFlag(self): deconvolved = deconvolveTask.run(coadds["test"], catalog).deconvolved mDeconvolved = afwImage.MultibandExposure.fromExposures(["test"], [deconvolved]) # deblend + # This is a hack because the variance is not calibrated properly + # (it is 3 orders of magnitude too high), which causes the deblender + # to improperly deblend most sources due to the sparsity constraint. + coadds.variance.array[:] = 2e-1 + mDeconvolved.variance.array[:] = 2e-1 catalog, modelData = deblendTask.run(coadds, mDeconvolved, catalog) # Attach footprints to the catalog mes.io.updateCatalogFootprints(