Skip to content

Conversation

@leeskelvin
Copy link
Contributor

No description provided.

@leeskelvin leeskelvin force-pushed the tickets/DM-53304 branch 7 times, most recently from 339bee5 to ae81664 Compare December 3, 2025 15:16
@jrmullaney jrmullaney self-requested a review December 3, 2025 15:25
Copy link
Contributor

@jrmullaney jrmullaney left a comment

Choose a reason for hiding this comment

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

LGTM!

Just one comment that you may want to address if you're feeling picky! Up to you.

self.exposure.metadata["LSST ISR FLAT APPLIED"] = True

# Set up a basic results struct to hold exposure attribute data
self.results = pipeBase.Struct()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably my fault. Can you be bothered to do self.results -> self.result to be consistent with what's in calibrateImage.py?

But LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Happy to. I considered naming this something else more descriptive here, like attribs or attributes, as result only really makes sense in the context of CalibrateImageTask. Any preferences for consistency over descriptiveness?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Plumped for self.attributes, as result is being used in other contexts in the script already.

Here we pass the full results attributes struct into _compute_psf. This
allows us to persist the background in the event that a failure arises
during processing. At present, we might persist a background-subtracted
exposure but not the associated background if an error occurs
mid-processing.
@leeskelvin leeskelvin merged commit 2b0290e into main Dec 4, 2025
2 checks passed
@leeskelvin leeskelvin deleted the tickets/DM-53304 branch December 4, 2025 00:30
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.

3 participants