-
Notifications
You must be signed in to change notification settings - Fork 49
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
Default to rereading the fields file #488
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #488 +/- ##
===========================================
- Coverage 70.48% 67.83% -2.66%
===========================================
Files 62 62
Lines 5418 5419 +1
Branches 751 752 +1
===========================================
- Hits 3819 3676 -143
- Misses 1392 1544 +152
+ Partials 207 199 -8
Continue to review full report at Codecov.
|
@@ -30,6 +30,8 @@ def get_observation(self, time=None, show_all=False, reread_fields_file=False): | |||
defaults to time called | |||
show_all (bool, optional): Return all valid observations along with | |||
merit value, defaults to False to only get top value | |||
reread_fields_file (bool, optional): If the fields file should be reread |
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.
And the reason for not making the change here in the params list (i.e. default =True).
@jamessynge I changed this to a config option, which fixed the tests (coverage went down 2.5% the other way). Let me know what you think of this setup. Thanks. |
…lt-reread-fields
and print a message. This is necessary for when just the priority (or other attribute) of an observation is changed.
It's annoying and inconvenient to have to shut down POCS just to read new targets. This changes the default to always reread the target file before scheduling from the
scheduling
state.Closes #344