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-14885: Use either nanoseconds or MJD in PPDB CcdVisit table #20

Merged
merged 1 commit into from Jun 26, 2018

Conversation

morriscb
Copy link
Contributor

No description provided.

@@ -163,7 +164,7 @@ def get_ccd_visit_info_from_exposure(exposure):
'ra': sphPoint.getRa().asDegrees(),
'decl': sphPoint.getDec().asDegrees(),
'expTime': visit_info.getExposureTime(),
'expMidptMJD': visit_info.getDate().nsecs() * 10 ** -9,
'expMidptMJD': date.get(date.MJD),
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps have it as date.get(system=DateTime.MJD) to be more explicit? (This is what Eli says he uses on Slack in the dm channel)

Please also update the values list comment above; the field name is expMidptMJD but it is described above as dateTimeMJD in seconds. Otherwise 💯 and many thanks

Change type description and DateTime.get call.

Fix typo in MJD call.
@morriscb morriscb merged commit 4bd90b6 into master Jun 26, 2018
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