Skip to content

DM-54482: Integrate PSF-shapelet subtask into calibrateImage as a donut-detector#1302

Merged
laurenam merged 1 commit into
mainfrom
tickets/DM-54482
May 12, 2026
Merged

DM-54482: Integrate PSF-shapelet subtask into calibrateImage as a donut-detector#1302
laurenam merged 1 commit into
mainfrom
tickets/DM-54482

Conversation

@laurenam
Copy link
Copy Markdown
Contributor

@laurenam laurenam commented May 5, 2026

No description provided.

@laurenam laurenam force-pushed the tickets/DM-54482 branch from 2e9a8c3 to 6d80b67 Compare May 5, 2026 20:17
@laurenam laurenam requested a review from TallJimbo May 5, 2026 20:41
@laurenam laurenam force-pushed the tickets/DM-54482 branch 3 times, most recently from a5612b1 to 8dfd917 Compare May 8, 2026 00:34
afwTable.CoordKey.addErrorFields(self.psf_schema)
# This is to ensure the shapelets metrics make it into the exposure
# summary stats even if all calibrations fail.
self.initial_summary = None
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pass this around as a local variable and method argument/return value instead of a task instance attribute. That might require changing some signatures of (hopefully) private methods, but it makes it a lot easier to read how information and logic flows through the task.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that’s what I tried to do initially, but because of the exception handling in _compute_psf, I couldn’t get it returned when the PSF modelling fails. I’ll try factoring out the shapelets measurement into its own method (but will have to think through passing catalogs around).

background : `lsst.afw.math.BackgroundList`
summary : `lsst.afw.image.ExposureSummary`, optional
Summary object to be appended to if not `None`. If `None` a new
summary opject will be created.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
summary opject will be created.
summary object will be created.

Comment thread python/lsst/pipe/tasks/calibrateImage.py
@laurenam laurenam force-pushed the tickets/DM-54482 branch 2 times, most recently from 5025c2c to ba9a7db Compare May 10, 2026 00:21
These shapeletes will help in assessing the focus (IQ) of the image.
Thresholds on the coefficient distributions will hopefully allow
for decisions to be made on the value of further processing the
image (particularly important for prompt processing such that we
don't alert on donuts) and/or inclusion in coadds in general and/or
for specific science use cases.
@laurenam laurenam force-pushed the tickets/DM-54482 branch from ba9a7db to 143dc69 Compare May 10, 2026 19:30
@laurenam laurenam merged commit 67866f0 into main May 12, 2026
4 checks passed
@laurenam laurenam deleted the tickets/DM-54482 branch May 12, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants