23 #include "pybind11/pybind11.h"
32 using namespace pybind11::literals;
39 using PyCoaddInputs = py::class_<CoaddInputs, std::shared_ptr<CoaddInputs>, typehandling::Storable>;
43 py::module::import(
"lsst.afw.typehandling");
45 PyCoaddInputs
cls(mod,
"CoaddInputs");
48 cls.def(py::init<>());
49 cls.def(py::init<table::Schema const &, table::Schema const &>(),
"visitSchema"_a,
"ccdSchema"_a);
50 cls.def(py::init<table::ExposureCatalog const &, table::ExposureCatalog const &>(),
"visits"_a,
"ccds"_a);
52 table::io::python::addPersistableMethods<CoaddInputs>(
cls);
55 cls.def_readwrite(
"visits", &CoaddInputs::visits);
56 cls.def_readwrite(
"ccds", &CoaddInputs::ccds);
57 cls.def(
"isPersistable", &CoaddInputs::isPersistable);