23 #include "pybind11/pybind11.h" 24 #include "pybind11/stl.h" 32 namespace py = pybind11;
39 void declarePhotometryModel(py::module &mod) {
40 py::class_<PhotometryModel, std::shared_ptr<PhotometryModel>> cls(mod,
"PhotometryModel");
42 cls.def(
"photomFactor", &PhotometryModel::photomFactor,
"ccdImage"_a,
"where"_a = Point());
45 void declareSimplePhotometryModel(py::module &mod) {
46 py::class_<SimplePhotometryModel, std::shared_ptr<SimplePhotometryModel>, PhotometryModel> cls(
47 mod,
"SimplePhotometryModel");
48 cls.def(py::init<CcdImageList const &>(),
"ccdImageList"_a);
51 void declareConstrainedPhotometryModel(py::module &mod) {
52 py::class_<ConstrainedPhotometryModel, std::shared_ptr<ConstrainedPhotometryModel>, PhotometryModel> cls(
53 mod,
"ConstrainedPhotometryModel");
54 cls.def(py::init<CcdImageList const &>(),
"CcdImageList"_a);
58 py::module::import(
"lsst.jointcal.ccdImage");
59 py::module::import(
"lsst.jointcal.photometryTransfo");
60 py::module::import(
"lsst.jointcal.star");
61 py::module mod(
"photometryModels");
63 declarePhotometryModel(mod);
64 declareSimplePhotometryModel(mod);
65 declareConstrainedPhotometryModel(mod);
Class for a simple mapping implementing a generic Gtransfo.