-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
implement CubicHermiteInterp #1011
Conversation
CubicHermiteInterp is a HARK compatible wrapper of scipy's CubicHermiteSpline
This is great work @alanlujan91 ! I would be in favor of this replacing HARK's current cubic interpolator. What happens if you do that? Do the automated tests for the library still pass? (There are other model tests that use the interpolator.) I wonder if it's possible to streamline the HARK interpolator interface further, but that may be out of scope of this particular PR. |
remove additional scipy features, for another PR
simple replace CubicInterp for CubicHermiteInterp to check tests
Codecov Report
@@ Coverage Diff @@
## master #1011 +/- ##
==========================================
- Coverage 72.53% 72.53% -0.01%
==========================================
Files 68 68
Lines 10298 10358 +60
==========================================
+ Hits 7470 7513 +43
- Misses 2828 2845 +17
Continue to review full report at Codecov.
|
remove additional scipy features; will be in different PR
Could you review this per our conversation? Basically either ask Alan to add the old interpolator as an option (easier) or describe to him the tests you'd like him to conduct to show that the new version is better in every respect (including the memory usage issue that you identified earlier). |
I'll try to take a look at this. The easiest/quickest way forward is to use
the new version as CubicInterp and keep the old one with a marking of
LEGACY or OLD. If it has the same interface as the old code, then
everything should work the same. But then any project that needs the old
version for memory reasons has the option to do that:
`from HARK.interpolation import CubicInterpOLD`
`CubicInterp = CubicInterpOLD`
…On Mon, Jun 14, 2021 at 9:51 AM Christopher Llorracc Carroll < ***@***.***> wrote:
@mnwhite <https://github.com/mnwhite>
Could you review this per our conversation? Basically either ask Alan to
add the old interpolator as an option (easier) or describe to him the tests
you'd like him to conduct to show that the new version is better in every
respect (including the memory usage issue that you identified earlier).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1011 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKRAFK5HFHQYYZXMZS6W5DTSYCNBANCNFSM44HN6G6Q>
.
|
@sbenthall I have swapped out CubicInterp for CubicHermiteInterp in |
Apologies for the slow review turnaround, @alanlujan91 . Could you fix that merge conflict? @mnwhite did you see any reason not to merge this PR? |
@sbenthall please see #1060. I think this is something that should be addressed on its own in a standalone PR. I will work on this but lmk if you have any suggestions. |
Ok, should this PR be closed because it has been superseded by #1060? |
CubicHermiteInterp is a HARK compatible wrapper of scipy's CubicHermiteSpline
See notebook for discussion: https://github.com/alanlujan91/HARK/blob/scipyCubic/examples/Interpolation/CubicInterp.ipynb
Please ensure your pull request adheres to the following guidelines: