packMatches

lsst.afw.table.packMatches(matches)

Make a catalog of matches from a sequence of matches.

The catalog contains three fields: - first: the ID of the first source record in each match - second: the ID of the second source record in each match - distance: the distance of each match

Parameters
matches :

Sequence of matches, typically of type SimpleMatch, ReferenceMatch or SourceMatch. Each element must support: first.getId()->int, second.getId()->int and distance->float.

Returns
result :

The catalog of matches.

Notes

This pure python implementation exists as a historical artifact related to SWIG limitations. It might be practical to wrap the overloaded C++ functions with pybind11, but there didn’t seem much point.