We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33caa99 commit a7ffae5Copy full SHA for a7ffae5
src/systems/diffeqs/odesystem.jl
@@ -481,6 +481,11 @@ function build_explicit_observed_function(sys, ts;
481
newvar = get(ns_map, var, nothing)
482
if newvar !== nothing
483
namespace_subs[var] = newvar
484
+ var = newvar
485
+ end
486
+ if throw && !(var in allsyms) &&
487
+ (!iscall(var) || operation(var) !== getindex || !(arguments(var)[1] in allsyms))
488
+ Base.throw(ArgumentError("Symbol $var is not present in the system."))
489
end
490
491
ts = fast_substitute(ts, namespace_subs)
0 commit comments