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-24375: Fix time precision issue in type decorator #255

Merged
merged 2 commits into from Apr 9, 2020

Conversation

andy-slac
Copy link
Contributor

Precision of a Python float type is not enough to guarantee nanosecond
precision, need more careful handling when converting between astropy
time and nanoseconds.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks great. A couple of minor comments.

python/lsst/daf/butler/core/ddl.py Outdated Show resolved Hide resolved
tests/test_ddl.py Show resolved Hide resolved
python/lsst/daf/butler/core/time_utils.py Outdated Show resolved Hide resolved
tests/test_time_utils.py Outdated Show resolved Hide resolved
@andy-slac andy-slac force-pushed the tickets/DM-24375 branch 2 times, most recently from 9bd8c7f to 2ae2cad Compare April 9, 2020 00:35
Precision of a Python float type is not enough to guarantee nanosecond
precision, need more careful handling when converting between astropy
time and nanoseconds.
Move time conversion methods from `ddl` to new module `time_utils`, add
time comparison with precision. Should make it more reusable.
@andy-slac andy-slac merged commit 0908072 into master Apr 9, 2020
@timj timj deleted the tickets/DM-24375 branch April 22, 2020 22:01
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