diff --git a/proseco/characteristics_guide.py b/proseco/characteristics_guide.py index c19d6821..663605f9 100644 --- a/proseco/characteristics_guide.py +++ b/proseco/characteristics_guide.py @@ -97,11 +97,24 @@ }, "Imposter": { "CentroidOffsetLim": 4.5, + }}, + {"Stage": 6, + "SigErrMultiplier": 0, + "ASPQ1Lim": 20, + "MagLimit": [5.6, 10.3], + "DoBminusVcheck": 0, + "Spoiler": { + "BgPixThresh": 25, + "RegionFrac": .05, + }, + "Imposter": { + "CentroidOffsetLim": 4.0, }, } ] + # Guide cluster checks. # Index is the "n_minus" value, so n - 0 stars need minimum 2500 max separation # n - 1 stars require 1000 arcsec separation. diff --git a/proseco/guide.py b/proseco/guide.py index 1f3e2c0e..12cd5983 100644 --- a/proseco/guide.py +++ b/proseco/guide.py @@ -250,11 +250,12 @@ def search_stage(self, stage): # For the bright end of the check, set a lower bound to always use at least 1 # mag_err, but do not bother with this bound at the faint end of the check. # Also explicitly confirm that the star is not within 2 * mag_err of the hard - # bright limit. + # bright limit (which is basically 5.8, but if bright lim set to less than 5.8 + # in the stage, take that). bad_mag = ( ((cand_guides['mag'] - max(n_sigma, 1) * mag_err) < bright_lim) | ((cand_guides['mag'] + n_sigma * mag_err) > faint_lim) | - ((cand_guides['mag'] - 2 * mag_err) < 5.8)) + ((cand_guides['mag'] - 2 * mag_err) < min(bright_lim, 5.8))) for idx in np.flatnonzero(bad_mag): self.reject({'id': cand_guides['id'][idx], 'type': 'mag outside range',