Skip to content

Commit

Permalink
Modify variance in isPrimary task to fix bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed Jan 16, 2025
1 parent 202ab99 commit 835696e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_isPrimaryFlag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 835696e

Please sign in to comment.