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-13790: Remove all use of the geom package #197

Merged
merged 1 commit into from May 11, 2018
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented May 8, 2018

No description provided.

@r-owen r-owen force-pushed the tickets/DM-13790 branch 2 times, most recently from 07150ce to 588b656 Compare May 9, 2018 00:47
Use lsst.sphgeom.ConvexPolygon.convexHull
instead of lsst.geom.convexHull
skyMapConfig.raList.append(circleCenter[0].asDegrees())
skyMapConfig.decList.append(circleCenter[1].asDegrees())
circleRadiusDeg = circle.getOpeningAngle().asDegrees()
skyMapConfig.radiusList.append(circleRadiusDeg + self.config.borderSize)
Copy link
Contributor

Choose a reason for hiding this comment

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

What's wrong with circle.radius?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lsst.sphgeom.Circle does not support radius or getRadius; the equivalent method is getOpeningAngle(). Unfortunately the sphgeom pybind11 wrapper doesn't seem to use properties, as openingAngle would be nicer than getOpeningAngle(). We make small enough use of sphgeom that I figured we could live with that, but I am not happy about it.

@r-owen r-owen merged commit b00605b into master May 11, 2018
@ktlim ktlim deleted the tickets/DM-13790 branch August 25, 2018 06:45
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