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-19766: Fix DECam translation problem and add date consistency tests #22

Merged
merged 5 commits into from May 23, 2019

Conversation

timj
Copy link
Member

@timj timj commented May 21, 2019

No description provided.

timj added 4 commits May 21, 2019 10:51
Use the exposure time to calculate the end date.
UT is documented to mean the middle of the exposure although
in the test headers available it has the same value as UT-STR.
Sometimes the headers are a bit inconsistent and the end
time is a fraction of a second before the exposure time would
suggest.
* Is the start date <= end date?
* Is the end date >= start date + exposure time
@timj timj requested a review from SimonKrughoff May 21, 2019 17:57
@timj timj changed the title DM-9766: Fix DECam translation problem and add date consistency tests DM-19766: Fix DECam translation problem and add date consistency tests May 21, 2019
Copy link
Contributor

@SimonKrughoff SimonKrughoff left a comment

Choose a reason for hiding this comment

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

Looks good.

datetime_begin = self.to_datetime_begin()
exposure_end = datetime_begin + exposure_time
if value < exposure_end:
value = exposure_end
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be an error, or is it actually expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

There seems to be a problem with Suprimecam data where the end time in the header is less than the start time plus the exposure time. I don't have enough suprimecam data to know if that's always true so this test is there to ensure that the the latest end time is used.

@timj timj merged commit 77e2c91 into master May 23, 2019
@timj timj deleted the tickets/DM-19766 branch May 23, 2019 15:27
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