Skip to content

Commit

Permalink
Merge pull request #5 from lsst/tickets/DM-14834
Browse files Browse the repository at this point in the history
DM-14834: Use pybind11's native Eigen wrapping instead of ndarray EigenView
  • Loading branch information
r-owen committed Jun 29, 2018
2 parents a7c72c5 + 43e3864 commit e920381
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
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

0 comments on commit e920381

Please sign in to comment.