Skip to content

Commit bbaa315

Browse files
Merge pull request #87 from SciML/shashi-patch-1
bump MTK compat
2 parents acb450b + ed8ddcc commit bbaa315

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ParameterizedFunctions"
22
uuid = "65888b18-ceab-5e60-b2b9-181511a3b968"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "5.12.1"
4+
version = "5.12.2"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
@@ -18,7 +18,7 @@ DataStructures = "0.17, 0.18"
1818
DiffEqBase = "6.5"
1919
DocStringExtensions = "0.8"
2020
Latexify = "0.14, 0.15"
21-
ModelingToolkit = "6"
21+
ModelingToolkit = "7"
2222
Reexport = "0.2, 1.0"
2323
SciMLBase = "1.3"
2424
julia = "1.3"

src/utils.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ function modelingtoolkitize_expr(ex::Expr,vars,curmod)
2222
ex.head === :if && (ex = Expr(:call, ifelse, ex.args...))
2323
ex.head === :call || throw(ArgumentError("internal representation does not support non-call Expr"))
2424
op = ex.args[1] names ? vars[findfirst(x->ex.args[1] == tosymbol(x),vars)] : getproperty(curmod,ex.args[1]) # HACK
25-
args = [modelingtoolkitize_expr(x,vars,curmod) for x in ex.args[2:end]]
26-
return Term(op, args)
25+
return op((modelingtoolkitize_expr(x,vars,curmod) for x in ex.args[2:end])...)
2726
end
2827

2928
function modelingtoolkitize_expr(ex::Sym,vars,curmod)

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ end a μ c d
8585
NJ(du,u,[1.5,1,3,4],t)
8686
@test du == [-3.0;-3*3.0 + erf(2.0*3.0/4)]
8787
@test du == NJ(u,[1.5,1,3,4],t)
88-
@test_throws MethodError NJ.jac(iJ,u,p,t)
89-
# NJ(Val{:jac},t,u,J) # Currently gives E not defined, will be fixed by the next SymEgine
88+
NJ.jac(iJ,u,p,t)
9089

9190
println("Test anonymous definition")
9291

0 commit comments

Comments
 (0)