23 #include "pybind11/pybind11.h"
29 using namespace pybind11::literals;
36 py::module::import(
"lsst.afw.image");
37 py::module::import(
"lsst.afw.table");
39 py::class_<BaseAlgorithm, std::shared_ptr<BaseAlgorithm>> clsBaseAlgorithm(mod,
"BaseAlgorithm");
40 py::class_<SingleFrameAlgorithm, std::shared_ptr<SingleFrameAlgorithm>,
BaseAlgorithm>
41 clsSingleFrameAlgorithm(mod,
"SingleFrameAlgorithm");
42 py::class_<SimpleAlgorithm, std::shared_ptr<SimpleAlgorithm>,
SingleFrameAlgorithm> clsSimpleAlgorithm(
43 mod,
"SimpleAlgorithm", py::multiple_inheritance());
45 clsBaseAlgorithm.def(
"fail", &BaseAlgorithm::fail,
"measRecord"_a,
"error"_a = NULL);
46 clsBaseAlgorithm.def(
"getLogName", &SimpleAlgorithm::getLogName);
50 clsSimpleAlgorithm.def(
"measureForced", &SimpleAlgorithm::measureForced,
"measRecord"_a,
"exposure"_a,
51 "refRecord"_a,
"refWcs"_a);