Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_algorithms
-
Labels:None
-
Team:External
Description
Simply turning on doUnresolved does not work because there are other config parameters that need to be set.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Risk Score | 0 |
Reviewers | Eli Rykoff [ erykoff ] | |
Status | To Do [ 10001 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
Eli Rykoff, would you be willing to review this, please?
price@pap-laptop:~/LSST/meas_algorithms (tickets/DM-15324=) $ git sub-patch
commit 66e90cb0d72d52e7cfbc3421b290088a75d250b2 (HEAD -> tickets/DM-15324, origin/tickets/DM-15324)
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Aug 6 10:21:46 2018 -0400
sourceSelector: set default for RequireUnresolved
Now you can turn it on and it will Just Work.
diff --git a/python/lsst/meas/algorithms/sourceSelector.py b/python/lsst/meas/algorithms/sourceSelector.py
index 52971162..e8f93245 100644
--- a/python/lsst/meas/algorithms/sourceSelector.py
+++ b/python/lsst/meas/algorithms/sourceSelector.py
@@ -414,6 +414,13 @@ class RequireUnresolved(BaseLimit):
name = pexConfig.Field(dtype=str, default="base_ClassificationExtendedness_value",
doc="Name of column for star/galaxy separation")
+ def setDefaults(self):
+ """Set default
+
+ ``base_ClassificationExtendedness_value < 0.5`` means unresolved.
+ """
+ self.maximum = 0.5
+
def apply(self, catalog):
"""Apply the flag requirements to a catalog