Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tickets/dm 6474 #32

Merged
merged 2 commits into from
Jun 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions python/lsst/meas/astrom/catalogStarSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from lsst.afw.table import SourceCatalog
from lsst.meas.algorithms import StarSelectorTask
from lsst.meas.algorithms import BaseStarSelectorTask, starSelectorRegistry
from lsst.pipe.base import Struct
import lsst.pex.config as pexConfig
import lsst.afw.display.ds9 as ds9

class CatalogStarSelectorConfig(StarSelectorTask.ConfigClass):
class CatalogStarSelectorConfig(BaseStarSelectorTask.ConfigClass):
fluxLim = pexConfig.RangeField(
doc = "specify the minimum psfFlux for good Psf Candidates",
dtype = float,
Expand All @@ -40,7 +40,7 @@ class CatalogStarSelectorConfig(StarSelectorTask.ConfigClass):
)

def setDefaults(self):
StarSelectorTask.ConfigClass.setDefaults(self)
BaseStarSelectorTask.ConfigClass.setDefaults(self)
self.badFlags = [
"base_PixelFlags_flag_edge",
"base_PixelFlags_flag_interpolatedCenter",
Expand Down Expand Up @@ -183,3 +183,5 @@ def selectStars(self, exposure, sourceCat, matches=None):
return Struct(
starCat = starCat,
)

starSelectorRegistry.register("catalog", CatalogStarSelectorTask)