-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fixed spline interp problem #47
Conversation
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.
One semi-significant change requested by me
Thanks for this!
zdm/energetics.py
Outdated
|
||
|
||
|
||
def test_spline_accuracy(gamma = -1.5837, Ntest = 100): |
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.
please move this to a file in the tests/ folder
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.
extra credit if you get it to run under CI
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.
Done
zdm/energetics.py
Outdated
|
||
def time_splines(gamma = -1.5837, Ntimetest = 100000, Nreps=100): |
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.
probably best in tests/ too
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.
Done! In same script
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.
(in theory, I could split this into a performance check file, but too lazy, since we haven't really paid attention to performance checks in any systematic way - should re-do these at some point)
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.
nice!
Some minor changes to the behaviour of spline interpolation (interp in log space now), and changed 1e-2 to 1e-5 for a "small" number in survey.py. Also a spline performance test routine added. See SLACK for details.