22 #include "pybind11/pybind11.h"
24 #include "lsst/afw/table/io/python.h"
27 namespace py = pybind11;
28 using namespace pybind11::literals;
32 namespace algorithms {
35 py::module mod(
"pcaPsf");
37 afw::table::io::python::declarePersistableFacade<PcaPsf>(mod,
"PcaPsf");
39 py::class_<PcaPsf, std::shared_ptr<PcaPsf>, lsst::afw::table::io::PersistableFacade<PcaPsf>,
KernelPsf>
40 clsPcaPsf(mod,
"PcaPsf");
43 clsPcaPsf.def(py::init<std::shared_ptr<afw::math::LinearCombinationKernel>, afw::geom::Point2D
const &>(),
44 "kernel"_a,
"averagePosition"_a = afw::geom::Point2D());
47 clsPcaPsf.def(
"clone", &PcaPsf::clone);
48 clsPcaPsf.def(
"getKernel", &PcaPsf::getKernel);
A Psf defined by a Kernel.
PYBIND11_PLUGIN(binnedWcs)