diff --git a/SAGA/targets/assign_targeting_score.py b/SAGA/targets/assign_targeting_score.py index 5d5c2e7..8661c7d 100644 --- a/SAGA/targets/assign_targeting_score.py +++ b/SAGA/targets/assign_targeting_score.py @@ -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 @@ -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)) diff --git a/SAGA/version.py b/SAGA/version.py index df9756c..35b65ce 100644 --- a/SAGA/version.py +++ b/SAGA/version.py @@ -1,4 +1,4 @@ """ SAGA package version """ -__version__ = '0.9.12' +__version__ = '0.9.13'