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

Fix step interpolation rounding for datetime #3958

Merged
merged 1 commit into from
Sep 13, 2019
Merged

Fix step interpolation rounding for datetime #3958

merged 1 commit into from
Sep 13, 2019

Conversation

randomstuff
Copy link
Contributor

When interpolating datetime values in step(), the values where
converted in floating types: this causes a lack of precision in the
computation. Instead, we can do the computation in datetime64[ns].

Fixes #3878

When interpolating datetime values in step(), the values where
converted in floating types: this causes a lack of precision in the
computation. Instead, we can do the computation in datetime64[ns].
@randomstuff
Copy link
Contributor Author

Updated the broken tests. They look a lot more sane now :)

@philippjfr philippjfr merged commit b20132f into holoviz:master Sep 13, 2019
@philippjfr
Copy link
Member

Hmm, actually looking back at this. The conversion to integers (and then floats) was initially added to avoid errors when using datetimes. I'm quite surprised this is working without that conversion now.

philippjfr pushed a commit that referenced this pull request Sep 20, 2019
When interpolating datetime values in step(), the values where
converted in floating types: this causes a lack of precision in the
computation. Instead, we can do the computation in datetime64[ns].
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Pre' and 'post' step interpolations loose precision
2 participants