24 #include "pybind11/pybind11.h"
26 #include "ndarray/pybind11.h"
31 using namespace pybind11::literals;
38 using PyLikelihood = py::class_<Likelihood, std::shared_ptr<Likelihood>>;
41 py::module::import(
"lsst.meas.modelfit.model");
43 PyLikelihood
cls(mod,
"Likelihood");
44 cls.def(
"getDataDim", &Likelihood::getDataDim);
45 cls.def(
"getAmplitudeDim", &Likelihood::getAmplitudeDim);
46 cls.def(
"getNonlinearDim", &Likelihood::getNonlinearDim);
47 cls.def(
"getFixedDim", &Likelihood::getFixedDim);
48 cls.def(
"getFixed", &Likelihood::getFixed);
49 cls.def(
"getData", &Likelihood::getData);
50 cls.def(
"getUnweightedData", &Likelihood::getUnweightedData);
51 cls.def(
"getWeights", &Likelihood::getWeights);
52 cls.def(
"getVariance", &Likelihood::getVariance);
53 cls.def(
"getModel", &Likelihood::getModel);
54 cls.def(
"computeModelMatrix", &Likelihood::computeModelMatrix,
"modelMatrix"_a,
"nonlinear"_a,
55 "doApplyWeights"_a =
true);