23 #include "pybind11/pybind11.h"
24 #include "pybind11/stl.h"
31 namespace py = pybind11;
32 using namespace pybind11::literals;
38 void declarePhotometryModel(py::module &mod) {
39 py::class_<PhotometryModel, std::shared_ptr<PhotometryModel>> cls(mod,
"PhotometryModel");
41 cls.def(
"photomFactor", &SimplePhotometryModel::photomFactor,
"ccdImage"_a,
"where"_a = Point());
44 void declareSimplePhotometryModel(py::module &mod) {
45 py::class_<SimplePhotometryModel, std::shared_ptr<SimplePhotometryModel>, PhotometryModel> cls(
46 mod,
"SimplePhotometryModel");
47 cls.def(py::init<CcdImageList const &>(),
"ccdImageList"_a);
50 PYBIND11_PLUGIN(photometryModels) {
51 py::module::import(
"lsst.jointcal.ccdImage");
52 py::module::import(
"lsst.jointcal.star");
53 py::module mod(
"photometryModels");
55 declarePhotometryModel(mod);
56 declareSimplePhotometryModel(mod);