Skip to content

Commit

Permalink
Merge pull request #139 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Complete after modelingtoolkitize
  • Loading branch information
ChrisRackauckas authored Mar 18, 2024
2 parents efe59c9 + 1bff6e7 commit ed4184b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffeqpy/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from . import load_julia_packages
de, _, _ = load_julia_packages("DifferentialEquations", "ModelingToolkit", "PythonCall")
from juliacall import Main
de.jit = Main.seval("jit(x) = typeof(x).name.wrapper(ModelingToolkit.modelingtoolkitize(x), x.u0, x.tspan, x.p)") # kinda hackey
de.jit32 = Main.seval("jit(x) = typeof(x).name.wrapper(ModelingToolkit.modelingtoolkitize(x), Float32.(x.u0), Float32.(x.tspan), Float32.(x.p))") # kinda hackey
de.jit = Main.seval("jit(x) = typeof(x).name.wrapper(ModelingToolkit.complete(ModelingToolkit.modelingtoolkitize(x)), x.u0, x.tspan, x.p)") # kinda hackey
de.jit32 = Main.seval("jit(x) = typeof(x).name.wrapper(ModelingToolkit.complete(ModelingToolkit.modelingtoolkitize(x)), Float32.(x.u0), Float32.(x.tspan), Float32.(x.p))") # kinda hackey
sys.modules[__name__] = de # mutate myself

0 comments on commit ed4184b

Please sign in to comment.