22 #include "pybind11/pybind11.h"
23 #include "pybind11/stl.h"
28 using namespace pybind11::literals;
35 template <
typename MatchT>
36 static void declareMakeMatchStatistics(
py::module& mod) {
37 mod.def(
"makeMatchStatistics", &makeMatchStatistics<MatchT>,
"matchList"_a,
"flags"_a,
38 "sctrl"_a = afw::math::StatisticsControl());
39 mod.def(
"makeMatchStatisticsInPixels", &makeMatchStatisticsInPixels<MatchT>,
"wcs"_a,
"matchList"_a,
40 "flags"_a,
"sctrl"_a = afw::math::StatisticsControl());
41 mod.def(
"makeMatchStatisticsInRadians", &makeMatchStatisticsInRadians<MatchT>,
"wcs"_a,
"matchList"_a,
42 "flags"_a,
"sctrl"_a = afw::math::StatisticsControl());
48 py::module::import(
"lsst.afw.math");
51 declareMakeMatchStatistics<afw::table::ReferenceMatch>(mod);
52 declareMakeMatchStatistics<afw::table::SourceMatch>(mod);