27 #include "pybind11/pybind11.h"
28 #include "pybind11/stl.h"
38 using namespace pybind11::literals;
44 using utils::python::WrapperCollection;
48 template <
typename ReferenceCollection>
49 void declareUpdateRefCentroids(WrapperCollection &wrappers) {
50 wrappers.wrap([](
auto &mod) {
51 mod.def(
"updateRefCentroids", updateRefCentroids<ReferenceCollection>,
"wcs"_a,
"refList"_a);
55 template <
typename SourceCollection>
56 void declareUpdateSourceCoords(WrapperCollection &wrappers) {
57 wrappers.wrap([](
auto &mod) {
58 mod.def(
"updateSourceCoords", updateSourceCoords<SourceCollection>,
"wcs"_a,
"sourceList"_a);
65 declareUpdateRefCentroids<std::vector<std::shared_ptr<lsst::afw::table::SimpleRecord>>>(wrappers);
66 declareUpdateRefCentroids<lsst::afw::table::SimpleCatalog>(wrappers);
68 declareUpdateSourceCoords<std::vector<std::shared_ptr<lsst::afw::table::SourceRecord>>>(wrappers);
69 declareUpdateSourceCoords<lsst::afw::table::SourceCatalog>(wrappers);