Skip to content

Commit

Permalink
fix: remove usages of syms/paramsyms/indepsym keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Feb 14, 2024
1 parent 0475fc3 commit 8898aa2
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.")

Check warning on line 3910 in src/scimlfunctions.jl

View check run for this annotation

Codecov / codecov/patch

src/scimlfunctions.jl#L3910

Added line #L3910 was not covered by tests
sys = SymbolCache(syms, paramsyms, indepsym)
end
return sys
Expand Down

0 comments on commit 8898aa2

Please sign in to comment.