Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-38432: Use new API for deblender inputs #28

Merged
merged 1 commit into from
Sep 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions python/lsst/drp/tasks/forcedPhotCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from lsst.meas.base.forcedMeasurement import ForcedMeasurementTask
from lsst.meas.base.applyApCorr import ApplyApCorrTask
from lsst.meas.base.catalogCalculation import CatalogCalculationTask
from lsst.meas.extensions.scarlet.io import updateCatalogFootprints

__all__ = ("ForcedPhotCoaddConfig", "ForcedPhotCoaddTask")

Expand Down Expand Up @@ -327,15 +328,15 @@ def _attachScarletFootprints(self, catalog, modelData, exposure, band):
"""Attach scarlet models as HeavyFootprints
"""
if self.config.doConserveFlux:
redistributeImage = exposure.image
redistributeImage = exposure
else:
redistributeImage = None
# Attach the footprints
modelData.updateCatalogFootprints(
updateCatalogFootprints(
modelData=modelData,
catalog=catalog,
band=band,
psfModel=exposure.getPsf(),
redistributeImage=redistributeImage,
imageForResdistibution=redistributeImage,
removeScarletData=True,
updateFluxColumns=False,
)