25 #include "pybind11/pybind11.h" 26 #include "pybind11/stl.h" 40 py::class_<Associations, std::shared_ptr<Associations>>
cls(mod,
"Associations");
41 cls.def(py::init<>());
42 cls.def(py::init<CcdImageList const &>(),
"imageList"_a);
45 cls.def(
"refStarListSize", &Associations::refStarListSize);
46 cls.def(
"fittedStarListSize", &Associations::fittedStarListSize);
47 cls.def(
"associateCatalogs", &Associations::associateCatalogs,
"matchCutInArcsec"_a = 0,
48 "useFittedList"_a =
false,
"enlargeFittedList"_a =
true);
49 cls.def(
"collectRefStars", &Associations::collectRefStars,
"refCat"_a,
"matchCut"_a,
"fluxField"_a,
50 "refCoordinateErr"_a,
"rejectBadFluxes"_a =
false);
51 cls.def(
"deprojectFittedStars", &Associations::deprojectFittedStars);
52 cls.def(
"nCcdImagesValidForFit", &Associations::nCcdImagesValidForFit);
53 cls.def(
"nFittedStarsWithAssociatedRefStar", &Associations::nFittedStarsWithAssociatedRefStar);
55 cls.def(
"createCcdImage", &Associations::createCcdImage);
56 cls.def(
"addCcdImage", &Associations::addCcdImage);
57 cls.def(
"prepareFittedStars", &Associations::prepareFittedStars);
59 cls.def(
"getCcdImageList", &Associations::getCcdImageList, py::return_value_policy::reference_internal);
60 cls.def_property_readonly(
"ccdImageList", &Associations::getCcdImageList,
61 py::return_value_policy::reference_internal);
63 cls.def(
"computeBoundingCircle", &Associations::computeBoundingCircle);
65 cls.def(
"getCommonTangentPoint", &Associations::getCommonTangentPoint);
66 cls.def(
"setCommonTangentPoint", &Associations::setCommonTangentPoint);
67 cls.def(
"computeCommonTangentPoint", &Associations::computeCommonTangentPoint);
71 py::module::import(
"lsst.jointcal.ccdImage");
72 py::module::import(
"lsst.sphgeom");
73 declareAssociations(mod);
This file declares a class for representing circular regions on the unit sphere.
PYBIND11_MODULE(camera, mod)
A base class for image defects.