22 #include "pybind11/pybind11.h"
24 #include "ndarray/pybind11.h"
29 using namespace pybind11::literals;
35 py::module::import(
"lsst.afw.geom");
37 py::class_<BasisEvaluator, std::shared_ptr<BasisEvaluator>> clsBasisEvaluator(mod,
"BasisEvaluator");
40 clsBasisEvaluator.def(py::init<int, BasisTypeEnum>(),
"order"_a,
"basisType"_a);
43 clsBasisEvaluator.def(
"getOrder", &BasisEvaluator::getOrder);
44 clsBasisEvaluator.def(
"getBasisType", &BasisEvaluator::getBasisType);
53 double y) {
return self.fillEvaluation(array,
x,
y); },
54 "array"_a,
"x"_a,
"y"_a);
55 clsBasisEvaluator.def(
58 Array1d const &dy) {
return self.fillEvaluation(array,
x,
y, dx, dy); },
59 "array"_a,
"x"_a,
"y"_a,
"dx"_a,
"dy"_a);
60 clsBasisEvaluator.def(
"fillEvaluation",
62 return self.fillEvaluation(array, point);
64 "array"_a,
"point"_a);
65 clsBasisEvaluator.def(
68 Array1d const &dy) {
return self.fillEvaluation(array, point, dx, dy); },
69 "array"_a,
"point"_a,
"dx"_a,
"dy"_a);
70 clsBasisEvaluator.def(
"fillEvaluation",
72 return self.fillEvaluation(array, extent);
74 "array"_a,
"extent"_a);
75 clsBasisEvaluator.def(
78 Array1d const &dx,
Array1d const &dy) {
return self.fillEvaluation(array, extent, dx, dy); },
79 "array"_a,
"extent"_a,
"dx"_a,
"dy"_a);
80 clsBasisEvaluator.def(
"fillIntegration", &BasisEvaluator::fillIntegration,
"array"_a,
"xMoment"_a = 0,