Skip to content

Commit

Permalink
Bugfix for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Pim Schellart authored and Pim Schellart committed Mar 7, 2017
1 parent dc56238 commit 5f4149e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/lsst/afw/table/match/match.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace {

/// Declare match code templated on two types of catalog
template <typename Catalog1, typename Catalog2>
static void declareMatch2(py::module & mod, std::string const & prefix) {
void declareMatch2(py::module & mod, std::string const & prefix) {
typedef typename Catalog1::Record Record1;
typedef typename Catalog2::Record Record2;
typedef std::vector<Match<typename Catalog1::Record, typename Catalog2::Record>> MatchList;
Expand Down Expand Up @@ -67,7 +67,7 @@ static void declareMatch2(py::module & mod, std::string const & prefix) {
};

/// Declare match code templated on one type of catalog
static template <typename Catalog>
template <typename Catalog>
void declareMatch1(py::module &mod) {
typedef std::vector<Match<typename Catalog::Record, typename Catalog::Record>> MatchList;
mod.def("matchRaDec",
Expand All @@ -79,6 +79,8 @@ void declareMatch1(py::module &mod) {
// &matchRaDec<Catalog1>, "cat"_a, "radius"_a, "symmetric"_a);
}

} // <anonymous>

PYBIND11_PLUGIN(match) {
py::module mod("match", "Python wrapper for afw _match library");

Expand Down Expand Up @@ -113,4 +115,4 @@ PYBIND11_PLUGIN(match) {
return mod.ptr();
}

}}}} // namespace lsst::afw::table::<anonymous>
}}} // namespace lsst::afw::table::<anonymous>

0 comments on commit 5f4149e

Please sign in to comment.