23 #include "pybind11/pybind11.h"
25 #include "lsst/afw/image/Wcs.h"
26 #include "lsst/afw/table/Source.h"
30 namespace py = pybind11;
31 using namespace pybind11::literals;
38 py::module::import(
"lsst.afw.image");
39 py::module::import(
"lsst.afw.table");
41 py::module mod(
"algorithm");
44 py::class_<BaseAlgorithm, std::shared_ptr<BaseAlgorithm>> clsBaseAlgorithm(
45 mod,
"BaseAlgorithm");
46 py::class_<SingleFrameAlgorithm, std::shared_ptr<SingleFrameAlgorithm>,
BaseAlgorithm> clsSingleFrameAlgorithm(
47 mod,
"SingleFrameAlgorithm");
48 py::class_<SimpleAlgorithm, std::shared_ptr<SimpleAlgorithm>,
SingleFrameAlgorithm> clsSimpleAlgorithm(
49 mod,
"SimpleAlgorithm", py::multiple_inheritance());
52 python::declareAlgorithm<SingleFrameAlgorithm>(clsSingleFrameAlgorithm);
54 clsSimpleAlgorithm.def(
"measureForced", &SimpleAlgorithm::measureForced,
55 "measRecord"_a,
"exposure"_a,
"refRecord"_a,
"refWcs"_a);
56 clsBaseAlgorithm.def(
"getLogName", &SimpleAlgorithm::getLogName);
Base class for algorithms that measure the properties of sources on single image. ...
Ultimate abstract base class for all C++ measurement algorithms.
PYBIND11_PLUGIN(algorithm)