Skip to content

Commit 1ba5cb5

Browse files
committed
Modify variance in isPrimary task to fix bad data
1 parent 7d3729d commit 1ba5cb5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_isPrimaryFlag.py

+5
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ def testIsScarletPrimaryFlag(self):
252252
deconvolved = deconvolveTask.run(coadds["test"], catalog).deconvolved
253253
mDeconvolved = afwImage.MultibandExposure.fromExposures(["test"], [deconvolved])
254254
# deblend
255+
# This is a hack because the variance is not calibrated properly
256+
# (it is 3 orders of magnitude too high), which causes the deblender
257+
# to improperly deblend most sources due to the sparsity constraint.
258+
coadds.variance.array[:] = 2e-1
259+
mDeconvolved.variance.array[:] = 2e-1
255260
catalog, modelData = deblendTask.run(coadds, mDeconvolved, catalog)
256261
# Attach footprints to the catalog
257262
mes.io.updateCatalogFootprints(

0 commit comments

Comments
 (0)