23 #include "pybind11/pybind11.h" 31 namespace py = pybind11;
39 using PyCoaddInputs = py::class_<CoaddInputs, std::shared_ptr<CoaddInputs>,
40 table::io::PersistableFacade<CoaddInputs>, table::io::Persistable>;
43 py::module mod(
"coaddInputs");
47 table::io::python::declarePersistableFacade<CoaddInputs>(mod,
"CoaddInputs");
49 PyCoaddInputs
cls(mod,
"CoaddInputs");
52 cls.def(py::init<>());
53 cls.def(py::init<table::Schema const &, table::Schema const &>(),
"visitSchema"_a,
"ccdSchema"_a);
54 cls.def(py::init<table::ExposureCatalog const &, table::ExposureCatalog const &>(),
"visits"_a,
"ccds"_a);
57 cls.def_readwrite(
"visits", &CoaddInputs::visits);
58 cls.def_readwrite(
"ccds", &CoaddInputs::ccds);
59 cls.def(
"isPersistable", &CoaddInputs::isPersistable);
PYBIND11_PLUGIN(_cameraPoint)
A base class for image defects.