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-30829: Add persistence for WarpedPsf #245

Merged
merged 5 commits into from Jun 24, 2021
Merged

Conversation

kfindeisen
Copy link
Member

This PR implements persistence for WarpedPsf. The adopted persisted form is merely the concatenation of the three subobjects currently making up the WarpedPsf implementation, as I don't see a more generic way to represent that state. Depends on lsst/afw#597.

I assumed the file was previously current through 2019, but that all new
2020-2021 entries are valid.
Copy link
Contributor

@jmeyers314 jmeyers314 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 a couple formatting questions.

@@ -247,24 +309,23 @@ BOOST_AUTO_TEST_CASE(warpedPsf)
unwarped_psf->evalABC(a, b, c, q);

Eigen::Matrix2d m0;
m0 << a, b,
b, c;
m0 << a, b, b, c;
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume this is to make clang-format happy? Is there a way to do that and keep it obvious that these are entries in a 2x2 matrix like before?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I just blindly ran clang-format. Since I'm not familiar enough with Eigen to know if there's another way to write this, I'll just revert.

Copy link
Member Author

Choose a reason for hiding this comment

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

tests/test_warpedPsf.cc Outdated Show resolved Hide resolved
This included updating the copyright statement, removing PTR and
CONST_PTR, and running clang-format.

Some lines dealing with coefficients and matrices have been excluded
from clang-format, to let them use formatting that implies a 2D state.
This is consistent with the intent of the class (a classic decorator pattern)
and avoids the need to specialize ImagePsfTrampoline for WarpedPsf.
@kfindeisen kfindeisen merged commit bc33d95 into master Jun 24, 2021
@kfindeisen kfindeisen deleted the tickets/DM-30829 branch June 24, 2021 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants