Skip to content

Commit a6b51fa

Browse files
committed
Use np.isclose for the guide star bad color check
1 parent 62ef107 commit a6b51fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proseco/guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_guide_candidates_mask(
148148
& (mag > 5.2)
149149
& (mag < faint_mag_limit)
150150
& (mag_err < 1.0)
151-
& (stars["COLOR1"] != 0.7)
151+
& (~np.isclose(stars["COLOR1"], 0.7))
152152
& (stars["ASPQ1"] < 20) # Less than 1 arcsec offset from nearby spoiler
153153
& (stars["ASPQ2"] == 0) # Unknown proper motion, or PM < 500 milli-arcsec/year
154154
& (stars["POS_ERR"] < 1250) # Position error < 1.25 arcsec

0 commit comments

Comments
 (0)