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

Change camGeom stuff to work after DM-5922 changes #68

Merged
merged 1 commit into from Sep 23, 2017

Conversation

mfisherlevine
Copy link
Contributor

No description provided.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

One request for changes. I'm sorry I missed doing this conversion as part of DM-5922. This suggests the code has no unit tests.

focalPlaneToFieldAngle = afwGeom.makeRadialTransform(radialCoeffs)
fieldAngleToFocalPlane = focalPlaneToFieldAngle.getInverse()
cameraTransformMap = cameraGeom.TransformMap(cameraGeom.FOCAL_PLANE,
{cameraGeom.FIELD_ANGLE: fieldAngleToFocalPlane})
Copy link
Contributor

Choose a reason for hiding this comment

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

Each transform in the dict should transform from the reference coordinate system (FOCAL_PLANE) to the dict key (FIELD_ANGLE in this case. The old code was incorrect and you can trivially make the new code correct by eliminating the line that makes constructs fieldAngleToFocalPlane and using focalPlaneToFieldAngle here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem, not your fault at all; as you say, this code does indeed have no unit tests. DM-11924 exists to address that (and the introduction of ci_ctio0m9 will also help).

@mfisherlevine mfisherlevine force-pushed the tickets/DM-11911 branch 2 times, most recently from 804e385 to b55f4df Compare September 23, 2017 00:35
@mfisherlevine mfisherlevine merged commit a83c964 into master Sep 23, 2017
@ktlim ktlim deleted the tickets/DM-11911 branch August 25, 2018 06:44
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