Skip to content

Commit

Permalink
Changed _isGoodTest comment to docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Jan 6, 2017
1 parent fb8e74a commit c8631e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/lsst/meas/astrom/matchOptimisticB.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def matchObjectsToSources(self, refCat, sourceCat, wcs, refFluxField, maxMatchDi

# cull non-good sources
matches = []
self._getIsGoodKeys(usableSourceCat.schema)
self._getIsGoodKeys(usableSourceCat.schema)
for match in usableMatches:
if self._isGoodTest(match.second):
# Append the isGood match.
Expand All @@ -261,9 +261,11 @@ def _getIsGoodKeys(self, schema):
self.saturatedKey = schema["base_PixelFlags_flag_saturated"].asKey()

def _isGoodTest(self, source):
# This is a hard coded version of the isGood flag from the old SourceInfo class that used to be
# part of this class. This is done current as the API for sourceSelector does not currently
# support matchLists.
"""
This is a hard coded version of the isGood flag from the old SourceInfo class that used to be
part of this class. This is done current as the API for sourceSelector does not currently
support matchLists.
"""
return (not source.get(self.edgeKey) and
not source.get(self.interpolatedCenterKey) and
not source.get(self.saturatedKey))
Expand Down

0 comments on commit c8631e1

Please sign in to comment.