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-7913: Implement RFC-240: make Angle's named methods const... #31

Merged
merged 1 commit into from Mar 11, 2017

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Mar 3, 2017

DM-7913 requested a breaking change in Angle's API; this was the only package outside afw to use the wrap methods.

The wrap methods were all changed to follow a functional form instead
of modifying Angles in place.
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.

Looks fine. I suggested one additional optional cleanup.

Also I find the logic for computing ctrRaAngle a bit puzzling, but it's out of scope to explain or change that since it's pre-existing working code.

@@ -315,16 +315,13 @@ def checkExpList(self, minRa, maxRa, runExpInfoDict):
@param[in] maxRa: maxinum RA (degrees)
@param[in] runExpInfoDict: a dict of run: list of ExposureInfo objects
"""
minRaAngle = minRa * afwGeom.degrees
maxRaAngle = maxRa * afwGeom.degrees
Copy link
Contributor

Choose a reason for hiding this comment

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

Please consider updating this test so that the method takes Angle as an argument. I realize it may be out of scope, and it will cascade slightly (e.g. getCoordList will also require the same change) but it's a nice cleanup if you are willing.

@kfindeisen kfindeisen merged commit a6867f5 into master Mar 11, 2017
@ktlim ktlim deleted the tickets/DM-7913 branch August 25, 2018 05:50
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