Skip to content

Commit

Permalink
Reorder overloads to adapt to addition of SubSchema.__getitem__
Browse files Browse the repository at this point in the history
__getitem__ makes pybind11 try vector overloads, and since those
fail (DM-8580), we need to try the SubSchema overload first.
  • Loading branch information
TallJimbo authored and Pim Schellart committed Mar 1, 2017
1 parent 86a1a5a commit 24b90f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/shapelet/functorKeys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ PYBIND11_PLUGIN(_functorKeys) {
clsMultiShapeletFunctionKey(mod, "MultiShapeletFunctionKey");

clsMultiShapeletFunctionKey.def(py::init<>());
clsMultiShapeletFunctionKey.def(py::init<std::vector<PTR(ShapeletFunctionKey)> const &>(),
"components"_a);
clsMultiShapeletFunctionKey.def(py::init<afw::table::SubSchema const &, BasisTypeEnum>(), "s"_a,
"basisType"_a = HERMITE);
clsMultiShapeletFunctionKey.def(py::init<std::vector<PTR(ShapeletFunctionKey)> const &>(),
"components"_a);

clsMultiShapeletFunctionKey.def_static("addFields", MultiShapeletFunctionKey::addFields, "schema"_a,
"name"_a, "doc"_a, "ellipseUnit"_a, "coeffUnit"_a, "orders"_a,
Expand Down

0 comments on commit 24b90f2

Please sign in to comment.