Skip to content

Commit

Permalink
add low_priority_objids option
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Sep 7, 2018
1 parent 86b6168 commit 1547cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion SAGA/targets/assign_targeting_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def assign_targeting_score_v1(base, manual_selected_objids=None,
def assign_targeting_score_v2(base, manual_selected_objids=None,
gmm_parameters=None, ignore_specs=False,
debug=False, n_random=50, seed=123,
remove_lists=None, **kwargs):
remove_lists=None, low_priority_objids=None,
**kwargs):
"""
Last updated: 09/05/2018
100 Human selection and Special targets
Expand Down Expand Up @@ -197,6 +198,11 @@ def assign_targeting_score_v2(base, manual_selected_objids=None,
sb_cut = Query('sb_r >= 0.7 * r_mag + 8')
bright = C.sdss_limit

if low_priority_objids is not None:
not_low_priority = Query((lambda x: np.in1d(x, low_priority_objids, invert=True), 'OBJID'))
bright = Query(bright, not_low_priority)
sb_cut = Query(sb_cut, not_low_priority)

if survey == 'sdss' and ('decals' in surveys or 'des' in surveys):
deep_survey = 'des' if 'des' in surveys else 'decals'
has_good_deep = Query('OBJID_{} != -1'.format(deep_survey), 'REMOVE_{} == 0'.format(deep_survey))
Expand Down
2 changes: 1 addition & 1 deletion SAGA/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
SAGA package version
"""
__version__ = '0.9.12'
__version__ = '0.9.13'

0 comments on commit 1547cc9

Please sign in to comment.