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-14834: Use pybind11's native Eigen wrapping instead of ndarray EigenView #5

Merged
merged 3 commits into from
Jun 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ _build.*
.coverage
.pytest_cache
pytest_session.txt
.coverage
config.log
doc/*.tag
doc/*.inc
Expand Down
1 change: 1 addition & 0 deletions python/lsst/geom/affineTransform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include "pybind11/pybind11.h"
#include "pybind11/eigen.h"
#include "pybind11/stl.h"

#include "ndarray/pybind11.h"
Expand Down
1 change: 1 addition & 0 deletions python/lsst/geom/coordinates/coordinates.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include "pybind11/pybind11.h"
#include "pybind11/eigen.h"
#include "ndarray/pybind11.h"

#include "lsst/geom/Point.h"
Expand Down
1 change: 1 addition & 0 deletions python/lsst/geom/linearTransform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include "pybind11/pybind11.h"
#include "pybind11/eigen.h"
#include "pybind11/stl.h"

#include "ndarray/pybind11.h"
Expand Down
17 changes: 0 additions & 17 deletions tests/test_coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,23 +244,6 @@ def testConstructors(self):
e2 = geom.Extent3D(e1)
self.assertAlmostEqual(tuple(e1), tuple(e2))

# test invalid constructors
e1 = geom.Extent2D(1.2, 3.4)
with self.assertRaises(TypeError):
e2 = geom.Extent2I(e1)

e1 = geom.Extent3D(1.2, 3.4, 5.6)
with self.assertRaises(TypeError):
e2 = geom.Extent3I(e1)

e1 = geom.Point2D(1.2, 3.4)
with self.assertRaises(TypeError):
e2 = geom.Extent2I(e1)

e1 = geom.Point3D(1.2, 3.4, 5.6)
with self.assertRaises(TypeError):
e2 = geom.Extent3I(e1)


class OperatorTestCase(lsst.utils.tests.TestCase):

Expand Down