24 #ifndef LSST_MEAS_BASE_PYTHON_H
25 #define LSST_MEAS_BASE_PYTHON_H
27 #include "pybind11/pybind11.h"
44 using namespace pybind11::literals;
54 template <
class Algorithm,
class PyAlg>
57 cls.def(py::init<typename Algorithm::Control const &, std::string const &, afw::table::Schema &>(),
58 "ctrl"_a,
"name"_a,
"schema"_a);
71 template <
class Algorithm,
class PyAlg>
86 template <
class Algorithm,
class PyAlg>
91 declareAlgorithmConstructor<Algorithm>(clsAlgorithm);
96 clsAlgorithm.def(
"fail", &Algorithm::fail,
"measRecord"_a,
"error"_a = NULL);
115 template <
class Algorithm,
class Control,
class PyAlg,
class PyCtrl>
117 declareAlgorithm<Algorithm>(clsAlgorithm);
122 clsControl.def(py::init<>());
147 template <
class Algorithm,
class Control,
class Transform,
class PyAlg,
class PyCtrl,
class PyXform>
149 declareAlgorithm<Algorithm, Control>(clsAlgorithm, clsControl);
155 py::init<typename Transform::Control const &, std::string const &, afw::table::SchemaMapper &>(),
156 "ctrl"_a,
"name"_a,
"mapper"_a);
159 clsTransform.def(
"__call__",
165 "inputCatalog"_a,
"outputCatalog"_a,
"wcs"_a,
"photoCalib"_a);