22 #include "pybind11/pybind11.h"
29 using namespace pybind11::literals;
33 namespace algorithms {
38 py::class_<CoaddPsfControl, std::shared_ptr<CoaddPsfControl>> clsControl(mod,
"CoaddPsfControl");
39 clsControl.def(py::init<std::string, int>(),
"warpingKernelName"_a =
"lanczos3",
"cacheSize"_a = 10000);
44 afw::table::io::python::declarePersistableFacade<CoaddPsf>(mod,
"CoaddPsf");
46 py::class_<CoaddPsf, std::shared_ptr<CoaddPsf>, afw::table::io::PersistableFacade<CoaddPsf>, ImagePsf>
47 clsCoaddPsf(mod,
"CoaddPsf");
52 "catalog"_a,
"coaddWcs"_a,
"weightFieldName"_a =
"weight",
53 "warpingKernelName"_a =
"lanczos3",
"cacheSize"_a = 10000);
56 "catalog"_a,
"coaddWcs"_a,
"ctrl"_a,
"weightFieldName"_a =
"weight");
60 clsCoaddPsf.def(
"getAveragePosition", &CoaddPsf::getAveragePosition);
61 clsCoaddPsf.def(
"getCoaddWcs", &CoaddPsf::getCoaddWcs);
62 clsCoaddPsf.def(
"getComponentCount", &CoaddPsf::getComponentCount);
63 clsCoaddPsf.def(
"getPsf", &CoaddPsf::getPsf);
64 clsCoaddPsf.def(
"getWcs", &CoaddPsf::getWcs);
65 clsCoaddPsf.def(
"getWeight", &CoaddPsf::getWeight);
66 clsCoaddPsf.def(
"getId", &CoaddPsf::getId);
67 clsCoaddPsf.def(
"getBBox", &CoaddPsf::getBBox);
68 clsCoaddPsf.def(
"getValidPolygon", &CoaddPsf::getValidPolygon);
69 clsCoaddPsf.def(
"isPersistable", &CoaddPsf::isPersistable);