-
Notifications
You must be signed in to change notification settings - Fork 164
Using float for time in the Parcels kernel #2117
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
Conversation
As performance tests have shown that this is approx 50% faster
|
Note that in this PR< we still assume that the user inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to adjust some things - not sure if that has to be in this PR though, happy for it to come in a different one
Small correctness fix. Otherwise could have run into edge cases with multiple fields defined on different (yet compatible) calendars.
|
We're not pursuing this anymore; getting good performance with numpy.datetime |
This PR reverts to using float inside the kernel (as in v3), as performance tests have shown that this is approx 50% faster. See e.g. Parcels-code/parcels-benchmarks#1 (comment)
mainfor v3 changes,v4-devfor v4 changes)