Skip to content

Commit

Permalink
Merge pull request #624 from AayushSabharwal/as/scimlfunction-sym
Browse files Browse the repository at this point in the history
fix: remove usages of `syms`/`paramsyms`/`indepsym` keyword argument
  • Loading branch information
ChrisRackauckas authored Feb 14, 2024
2 parents 0475fc3 + 8898aa2 commit 96f77c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/scimlfunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,7 @@ function ODEFunction{iip}(f::NonlinearFunction) where {iip}
jac_prototype = f.jac_prototype,
sparsity = f.sparsity,
paramjac = f.paramjac,
syms = variable_symbols(f),
indepsym = nothing,
paramsyms = parameter_symbols(f),
sys = f.sys,
observed = f.observed,
colorvec = f.colorvec)
end
Expand Down Expand Up @@ -2481,8 +2479,7 @@ function NonlinearFunction{iip}(f::ODEFunction) where {iip}
jac_prototype = f.jac_prototype,
sparsity = f.sparsity,
paramjac = f.paramjac,
syms = variable_symbols(f),
paramsyms = parameter_symbols(f),
sys = f.sys,
observed = f.observed,
colorvec = f.colorvec)
end
Expand Down Expand Up @@ -3910,7 +3907,7 @@ end

function sys_or_symbolcache(sys, syms, paramsyms, indepsym = nothing)
if sys === nothing && (syms !== nothing || paramsyms !== nothing || indepsym !== nothing)
@warn "The use of keyword arguments `syms`, `paramsyms` and `indepsym` for `SciMLFunction`s is deprecated. Pass `sys = SymbolCache(syms, paramsyms, indepsym)` instead."
error("The use of keyword arguments `syms`, `paramsyms` and `indepsym` for `SciMLFunction`s is deprecated. Pass `sys = SymbolCache(syms, paramsyms, indepsym)` instead.")
sys = SymbolCache(syms, paramsyms, indepsym)
end
return sys
Expand Down

0 comments on commit 96f77c8

Please sign in to comment.