-
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
Auto yaml #83
Conversation
231ad05
to
f3a3c6d
Compare
1f921cd
to
fb91cfb
Compare
… even if they fail. This includes setting default values where needed.
…ady in the supplement. Now they are not skipped if the agasc ID is set explicitly (with --agasc-id-file or --obs-status-file)
…_mag_supplement script (used when updating obs-status at the same time as the mag estimates)
…ns that failed or are suspicious.
- to make it more resilient: do not fail if get_telemetry raises an exception. - Redefined the meaning of 'n_obs_bad_new' to mean the number of failed observations, which include actual failures and suspect obs. - Redefined the 'warning' flag for agasc_stats so it includes stars with no observation at all (hence no "bad" observations). - some other trivial fixes.
@taldcroft , I just noticed this PR has been sitting here neglected. I thought of just merging now, but figured I should at least give you the chance to object. |
Not neglected, I've been (slowly) working through them in order. 😄 |
@javierggt - The detailed testing procedure is great and very helpful to let me try this out and get a sampling of the features. I am trying something slightly different and minimal with setup to avoid copying Gb's of files on HEAD. Is this OK?
Then I'm running with the following so I don't have to install this version into an environment (which is I think necessary to use the console scripts like you've shown. Do I have that right?):
One thing I noticed in the logs is a warning from the
This happens because the Finally, this code needs to be updated/rebased to use the new API for saving the version:
|
Somewhat unrelated process nit... I think the |
That should work. Actually, what I did was to install using:
that is why the scripts work. I just fixed the call to |
ah, and in relation to the warning... I don't know. I have not touched that part of the code, so it should not serve the observed magnitudes. Before saving the mags table, it also reads it, in order to update it and save it again. That must be when the warning is triggered. Before updating the magnitudes, at the very beginning, the code explicitly fetches the mags table to see which stars have been observed since the recorded time of last observation, so that is another point where the warning could appear (but I don't think so) |
Ah, I forgot and wasn't thinking too hard. Maybe we just delete that file? |
With regard to the old npy file, I think it is more work to try to figure out if any old code (ska2 or whatnot) is still using the shared-ska-data-file than to just leave it. |
I believe we decided to make the |
…pected failures in n_obsids_fail. Set n_obsids earlier so it is set even if all obs are bad. fixed logging line.
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 went through the functional testing and it all works as expected now. Some minor things have been pushed out to new issues.
This looks good to me for merging! 🎉
failures = [] | ||
all_telem = [] | ||
stats = [] | ||
last_obs_time = 0 | ||
for i, o in enumerate(star_obs): | ||
oi, ai = o['obsid', 'agasc_id'] |
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've been trying to avoid bikeshedding with variable names, but the pattern of using 1-character names like o
makes reading the code very difficult. No need to change now, but going forward please use longer more descriptive names in general. Even oi
and ai
would make reading the code quicker for me (and for you in 3 years) as agasc_id
and obsid
.
Description
This PR adds a functionality to create an obs-status file during the weekly run, which is then used to update the supplement.
It also adds required functionality for the entire cycle to work:
--obs-status-file
option. After this:obs
table in the supplement.This PR includes the following changes:
Testing
Fixes #57