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
Set_telescope_pointing to handle zero values for pointing mnemonics in engineering database #5540
Conversation
set_telescope_pointing
Codecov Report
@@ Coverage Diff @@
## master #5540 +/- ##
==========================================
+ Coverage 71.11% 71.73% +0.62%
==========================================
Files 410 410
Lines 36310 37917 +1607
Branches 5585 5999 +414
==========================================
+ Hits 25822 27201 +1379
- Misses 8848 9026 +178
- Partials 1640 1690 +50
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks good to me.
I assume that the errors raised in the lower-level routines get trapped at the upper level, so that processing continues, but with default values used for the pointing (e.g. values from TARG_RA/DEC)? We don't want level 1 processing falling dead in its tracks for all the cases of bad data we have in some of the DMS test suites.
There's 1 flake8 error that needs fixing. |
Yes, set_telescope_pointing traps errors if the engineering database can't be opened or if the telemetry values are zero, and uses the header keywords instead, but only if --allow-defaults is specified on the command line v1_calculate exits in those 2 cases, but it isnt used to update the WCS, just to check that things are working |
Addresses #5453 and JP-1771