24 #include "pybind11/pybind11.h" 26 #include "ndarray/pybind11.h" 41 using PySamplingObjective = py::class_<SamplingObjective, std::shared_ptr<SamplingObjective>>;
42 using PySampler = py::class_<Sampler, std::shared_ptr<Sampler>>;
45 py::module::import(
"lsst.afw.table");
46 py::module::import(
"lsst.meas.modelfit.mixture");
47 py::module::import(
"lsst.meas.modelfit.likelihood");
49 PySamplingObjective clsSamplingObjective(mod,
"SamplingObjective");
50 clsSamplingObjective.def(
"getParameterDim", &SamplingObjective::getParameterDim);
51 clsSamplingObjective.def(
"__call__", &SamplingObjective::operator(),
"parameters"_a,
"sample"_a);
53 PySampler clsSampler(mod,
"Sampler");
54 clsSampler.def(
"run", &
Sampler::run,
"objective"_a,
"proposal"_a,
"samples"_a);
PYBIND11_MODULE(camera, mod)
A base class for image defects.