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-43771: Disable warping kernel caches and require consistency with PSF warping. #917

Merged
merged 2 commits into from Apr 16, 2024

Conversation

TallJimbo
Copy link
Member

No description provided.

# configured here in MakeWarpTask is superseded by the one in
# AssembleCoaddTask. A pipeline contract in the drp_pipe is
# present to check that.
raise RuntimeError("Image warping cache size and CoaddPSf warping cache size do not agree.")
Copy link
Member

Choose a reason for hiding this comment

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

Raising FieldValidationError would be the right thing to do (that class was implemented specifically for this, AFAIK) but given that RuntimeError is raised above for another check, I wouldn't be strongly opposed to raising it here as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

FieldValidationError is a little too specific to errors in individual fields (rather than consistency across multiple fields) to be used here cleanly. But I see that it inherits from ValueError, so that's probably a better built-in to raise than RuntimeError. I'll also fix the one above the same way.

ValueError is the base class for pex.config.FieldValidationError, which
doesn't quite fit here because it's focused on single-field problems
rather than consistency problems.
@TallJimbo TallJimbo merged commit a33e0ea into main Apr 16, 2024
2 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-43771 branch April 16, 2024 18:55
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.

None yet

2 participants