Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_astrom
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:Science Pipelines DM-W16-4
-
Team:Data Release Production
Description
Recent changes to meas_astrom accidentally removed a function readMatches (copied below). Please restore it, preferably in its own module (though if someday we have more small python functions we may want a utils.py module).
Also please include a unit test.
def readMatches(butler, dataId, sourcesName='icSrc', matchesName='icMatch', config=MeasAstromConfig(), sourcesFlags=afwTable.SOURCE_IO_NO_FOOTPRINTS):
|
"""Read matches, sources and catalogue; combine.
|
@param butler Data butler
|
@param dataId Data identifier for butler
|
@param sourcesName Name for sources from butler
|
@param matchesName Name for matches from butler
|
@param sourcesFlags Flags to pass for source retrieval
|
@returns Matches
|
"""
|
sources = butler.get(sourcesName, dataId, flags=sourcesFlags)
|
packedMatches = butler.get(matchesName, dataId)
|
astrom = Astrometry(config)
|
return astrom.joinMatchListWithCatalog(packedMatches, sources)
|