DM-54482: Integrate PSF-shapelet subtask into calibrateImage as a donut-detector#1302
Merged
Conversation
a5612b1 to
8dfd917
Compare
TallJimbo
reviewed
May 8, 2026
| 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 |
Member
There was a problem hiding this comment.
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.
Contributor
Author
There was a problem hiding this comment.
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. |
Member
There was a problem hiding this comment.
Suggested change
| summary opject will be created. | |
| summary object will be created. |
5025c2c to
ba9a7db
Compare
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.
ba9a7db to
143dc69
Compare
TallJimbo
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.