Skip to content

Commit

Permalink
Make LonLat implicitly convertible to SpherePoint
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Apr 26, 2018
1 parent 72ec451 commit 59cf4b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/afw/geom/spherePoint/spherePoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ PYBIND11_PLUGIN(spherePoint) {
cls.def(py::init<SpherePoint const &>(), "other"_a);

py::implicitly_convertible<SpherePoint, sphgeom::LonLat>();
py::implicitly_convertible<sphgeom::LonLat, SpherePoint>();

/* Operators */
cls.def("__getitem__",
Expand Down

0 comments on commit 59cf4b1

Please sign in to comment.