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-10686: RingsSkyMap: fix findAllTracts for poles #7

Merged
merged 1 commit into from Jun 2, 2017

Conversation

djreiss
Copy link

@djreiss djreiss commented May 31, 2017

The initial pole check was wrong (doesn't allow other tracts to be
included) and unnecessary because the poles get picked up by the
check at the end.

Added a test.

Thought about allowing negative indexing into SkyMap, but decided
that would be a mistake because the SkyMap isn't really like a list,
but more like a dict.

@djreiss djreiss closed this Jun 1, 2017
@djreiss djreiss reopened this Jun 1, 2017
Copy link
Author

@djreiss djreiss left a comment

Choose a reason for hiding this comment

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

Other then the minor comment in the unit test this looks good to me.

"""
skymap = self.getSkyMap()
deg = lsst.afw.geom.degrees
tracts = skymap.findAllTracts(lsst.afw.coord.IcrsCoord(321*deg, 90*deg))
Copy link
Author

Choose a reason for hiding this comment

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

Since this is an important edge case, it might be good to do the tests on multiple different RAs.

The initial pole check was wrong (doesn't allow other tracts to be
included) and unnecessary because the poles get picked up by the
check at the end.

Added a test.

Thought about allowing negative indexing into SkyMap, but decided
that would be a mistake because the SkyMap isn't really like a list,
but more like a dict.
@PaulPrice PaulPrice merged commit 3860438 into master Jun 2, 2017
@ktlim ktlim deleted the tickets/DM-10686 branch August 25, 2018 05:56
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