Skip to content

Commit

Permalink
set placeholder blend_centroid in generateDonutDirectDetect
Browse files Browse the repository at this point in the history
  • Loading branch information
suberlak committed Feb 1, 2025
1 parent 9092c90 commit 25aaa96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/lsst/ts/wep/task/generateDonutDirectDetectTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ def run(self, exposure, camera):
# Use the aperture flux with a 70 pixel aperture
donutTable[f"{bandLabel}_flux"] = donutTable["apFlux70"]

# Set the required columns to be empty, unless
# overwritten by donutSelector below
donutTable.meta["blend_centroid_x"] = ""
donutTable.meta["blend_centroid_y"] = ""

# Run the donut selector task.
if self.config.doDonutSelection:
self.log.info("Running Donut Selector")
Expand All @@ -292,10 +297,6 @@ def run(self, exposure, camera):
donutCatSelected.meta["blend_centroid_x"] = donutSelection.blendCentersX
donutCatSelected.meta["blend_centroid_y"] = donutSelection.blendCentersY
else:
# if donut selector was not run,
# set the required columns to be empty
donutTable.meta["blend_centroid_x"] = ""
donutTable.meta["blend_centroid_y"] = ""
donutCatSelected = donutTable

donutCatSelected.rename_column(f"{bandLabel}_flux", "source_flux")
Expand Down

0 comments on commit 25aaa96

Please sign in to comment.