23 #include "pybind11/pybind11.h"
30 namespace py = pybind11;
31 using namespace pybind11::literals;
37 void declarePhotometryFit(py::module &mod) {
38 py::class_<PhotometryFit, std::shared_ptr<PhotometryFit>> cls(mod,
"PhotometryFit");
40 cls.def(py::init<Associations &, PhotometryModel *>(),
"associations"_a,
"photometryModel"_a);
42 cls.def(
"minimize", &PhotometryFit::minimize,
"whatToFit"_a);
44 cls.def(
"makeResTuple", &PhotometryFit::makeResTuple);
47 PYBIND11_PLUGIN(photometryFit) {
48 py::module::import(
"lsst.jointcal.associations");
49 py::module::import(
"lsst.jointcal.chi2");
50 py::module::import(
"lsst.jointcal.photometryModels");
51 py::module mod(
"photometryFit");
53 declarePhotometryFit(mod);
double computeChi2(const StarMatchList &L, const Gtransfo >ransfo)
the actual chi2