Skip to content
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-43175: Fix translation problem with negative exposure time and no DATE-END #514

Merged
merged 4 commits into from Mar 15, 2024

Conversation

timj
Copy link
Member

@timj timj commented Mar 15, 2024

Without a DATE-END the end time is calculated from the begin time and the exposure time. In some cases we deliberately calculate a negative exposure time and this was leading to the end time being before the begin time. Now catch this and set end time to the begin time.

If the OBSGEO keys are present but are undefined that will
raise TypeError and should be trapped.
Must be treated as if the OBJECT was missing.
If end time is not known but exposure time is negative, return
the begin time.
@timj timj requested a review from mfisherlevine March 15, 2024 21:19
Copy link
Contributor

@mfisherlevine mfisherlevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@timj timj merged commit 6bdc6d0 into main Mar 15, 2024
3 checks passed
@timj timj deleted the tickets/DM-43175 branch March 15, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants