-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API and attr support for include/exclude stars for guide #174
Conversation
proseco/acq.py
Outdated
@@ -154,6 +154,30 @@ def dither(self): | |||
def dither(self, value): | |||
self.dither_acq = value | |||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really should define a descriptor to handle these repetitive definitions.
Argument Description | ||
=================== ========================================================= | ||
include_ids_acq list of AGASC IDs of stars to include in acq catalog | ||
include_halfws_acq list of acq halfwidths corresponding to ``include_ids`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The '_acq' seems a little odd for the halfw (because we don't handle halfw for guide or fid), but I suppose it is consistent.
What is the current acq behavior if you try to include a star that is not allowed? Warn and proceed if it is on the CCD. Warn and ignore if it isn't? |
It needs to be a star in the ACA FOV (as defined by get_stars()). If not proseco raises an exception. Line 432 in eb9ec2e
|
It looks from the next line like it needs to be a valid candidate and not just on FOV (meaning the user couldn't say, override COLOR1!=0.7 or pick ASPQ=41). I'm OK with that, just keeping in mind use cases for an override from include_ids. |
This function is making sure the included star is in the candidate acq star table. The next line checks if it is already a candidate acq star, in which case no action is required. If not already a candidate, then it ensures that the star is in |
Ah. Thanks! |
And just to really convince myself. 😄
|
Any objection to merging? This passes tests on Mac, Ska3-flight (64) and Matlab32. |
I wish I could test on Windows, but so it goes. I'm planning to tag at 4.1 after merging this, noting that there have been non-trivial changes since 4.0. |
This makes it possible to specify a list of stars to specifically include or exclude for both acq and guide catalogs. This changes the
get_aca_catalog
API to have separate kwargs for acq and guide.GuideCatalog
include_ids
andexclude_ids
attributes.