26 #include "pybind11/pybind11.h" 27 #include "pybind11/stl.h" 42 template <
typename ReferenceCollection>
43 void declareUpdateRefCentroids(
py::module &mod) {
44 mod.def(
"updateRefCentroids", updateRefCentroids<ReferenceCollection>,
"wcs"_a,
"refList"_a);
47 template <
typename SourceCollection>
48 void declareUpdateSourceCoords(
py::module &mod) {
49 mod.def(
"updateSourceCoords", updateSourceCoords<SourceCollection>,
"wcs"_a,
"sourceList"_a);
53 py::module::import(
"lsst.afw.table.aggregates");
54 py::module::import(
"lsst.afw.table.simple");
55 py::module::import(
"lsst.afw.table.source");
57 declareUpdateRefCentroids<std::vector<std::shared_ptr<lsst::afw::table::SimpleRecord>>>(mod);
58 declareUpdateRefCentroids<lsst::afw::table::SimpleCatalog>(mod);
60 declareUpdateSourceCoords<std::vector<std::shared_ptr<lsst::afw::table::SourceRecord>>>(mod);
61 declareUpdateSourceCoords<lsst::afw::table::SourceCatalog>(mod);
PYBIND11_MODULE(camera, mod)
A base class for image defects.