From 1bff6e741e2e283dce853f0b48d8aff83a379bca Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 17 Mar 2024 19:56:17 -0400 Subject: [PATCH] Complete after modelingtoolkitize Updates for the changes in ModelingToolkit v9 Fixes https://github.com/SciML/diffeqpy/issues/138 --- diffeqpy/de.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diffeqpy/de.py b/diffeqpy/de.py index d201365..dd7242a 100644 --- a/diffeqpy/de.py +++ b/diffeqpy/de.py @@ -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