23 #include "pybind11/pybind11.h"
30 namespace py = pybind11;
31 using namespace pybind11::literals;
37 void declareAstrometryFit(py::module &mod) {
38 py::class_<AstrometryFit, std::shared_ptr<AstrometryFit>> cls(mod,
"AstrometryFit");
40 cls.def(py::init<Associations &, AstrometryModel *, double>(),
"associations"_a,
"astrometryModel"_a,
43 cls.def(
"minimize", &AstrometryFit::minimize,
"whatToFit"_a,
"nSigRejCut"_a = 0);
45 cls.def(
"makeResTuple", &AstrometryFit::makeResTuple);
48 PYBIND11_PLUGIN(astrometryFit) {
49 py::module::import(
"lsst.jointcal.associations");
50 py::module::import(
"lsst.jointcal.astrometryModels");
51 py::module::import(
"lsst.jointcal.chi2");
52 py::module mod(
"astrometryFit");
54 declareAstrometryFit(mod);
double computeChi2(const StarMatchList &L, const Gtransfo >ransfo)
the actual chi2