22 #include "pybind11/pybind11.h"
29 using namespace pybind11::literals;
33 namespace algorithms {
37 afw::table::io::python::declarePersistableFacade<KernelPsf>(mod,
"KernelPsf");
39 py::class_<KernelPsf, std::shared_ptr<KernelPsf>, afw::table::io::PersistableFacade<KernelPsf>, ImagePsf>
40 clsKernelPsf(mod,
"KernelPsf");
42 clsKernelPsf.def(py::init<afw::math::Kernel const &, geom::Point2D const &>(),
"kernel"_a,
45 clsKernelPsf.def(
"getKernel", &KernelPsf::getKernel);
46 clsKernelPsf.def(
"getAveragePosition", &KernelPsf::getAveragePosition);
48 clsKernelPsf.def(
"isPersistable", &KernelPsf::isPersistable);