Example showing interface with Julia #1647
Replies: 4 comments
-
Solving ODEs is outside the scope of PINTS. So if anyone wants to code up those examples that's fine and can go in separate repos (similar to https://github.com/pints-team/myokit-pints-examples ). |
Beta Was this translation helpful? Give feedback.
-
Ok but can we point to an example of this within PINTS? I agree solving ODEs is outside of scope but given that increasing numbers of people solve ODEs within Julia, I think it’d be good to show them that PINTS can be used in this way.
On that note, it’d be good to perhaps have a repo for miscellaneous stuff related to fitting ODE/PDE/DAEs with PINTS. In these, we could show how to, fit example, calculate sensitivities using Sundials/CVODE and use these in PINTS. In this, we could show how to interface Julia/other software with PINTS too.
… On 22 Oct 2019, at 13:07, Michael Clerx ***@***.***> wrote:
Solving ODEs is outside the scope of PINTS. So if anyone wants to code up those examples that's fine and can go in separate repos (similar to https://github.com/pints-team/myokit-pints-examples ).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
Just do a repo for each! So feel free to set up a pints/team-julia-ode or something :-) |
Beta Was this translation helpful? Give feedback.
-
Hey, did you get any further with this? I tried using DiffEqPy to solve a system with Julia's ODE solver, because the ODE solvers do indeed perform much better than SciPy's for the problem I'm currently solving. However, the problem I ran into is that Python and Julia don't play nice in a multiprocessing context and it runs excruciatingly slowly. I suspect that Julia is just-in-time compiling every iteration, not even merely once per core. In my example, what would take up to 20 seconds in pure python instead took up to 10 minutes with the Julia integration, sadly. This problem is a known issue but I was interested to see if you'd made any progress regardless. It was an unfortunate first foray into Julia, to find that it'd be a choice between good data fitting in python or good ODE solving in Julia! |
Beta Was this translation helpful? Give feedback.
-
Julia has really fast ODE solvers. I'd like to have an example notebook where we show how Julia solvers can be used from within Python, so that they can be used with PINTS. Perhaps even also show how PINTS can be called from Julia. It seems like there are some fairly mature packages for this interfacing here.
Beta Was this translation helpful? Give feedback.
All reactions