24 #include "pybind11/pybind11.h"
25 #include "pybind11/stl.h"
29 namespace py = pybind11;
30 using namespace pybind11::literals;
37 using PyMultiModel = py::class_<MultiModel, std::shared_ptr<MultiModel>, Model>;
39 PYBIND11_PLUGIN(multiModel) {
40 py::module::import(
"lsst.meas.modelfit.model");
44 PyMultiModel cls(mod,
"MultiModel");
45 cls.def(py::init<ModelVector, MultiModel::NameVector const &>(),
"components"_a,
"prefixes"_a);
46 cls.def(
"getComponents", &MultiModel::getComponents);