-
Notifications
You must be signed in to change notification settings - Fork 8
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
DM-42636: Add ObservationInfo.observing_day_offset #71
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
+ Coverage 78.59% 79.60% +1.00%
==========================================
Files 36 36
Lines 3140 3133 -7
Branches 670 670
==========================================
+ Hits 2468 2494 +26
+ Misses 549 508 -41
- Partials 123 131 +8 ☔ View full report in Codecov by Sentry. |
7eb96f4
to
11dc953
Compare
@TallJimbo this is ready for review. There are many cleanup commits that you can ignore. There is only one commit that adds |
This package is deprecated and does not work on python 3.12.
6b3be28
to
cf7fd9c
Compare
This offset is what is used to calculate an observing day from an observation date. There is also a class method allowing the offset to be calculated from the observation date. Each translator must declare an explicit value -- the default is None and is equivalent to applying 0 offset when converting a date time to an observing day.
I do not think the warning about switching to HIERARCH should exist at all. The purpose of the Header class is to transparently store the information in FITS in such a form that when we read the header we get the information back. HIERARCH is an internal implementation detail.
This also resulted in the astrometadata translate script implementation getting a new name.
Sometimes this test fails with 4 conversion failurs instead of 3 and we do not know why because there is no useful output. This change adds the output from the conversions on failure and adjusts the test to compare the okay and failed count at the same time by using a tuple.
cf7fd9c
to
5c1496b
Compare
No description provided.