@@ -352,8 +352,9 @@ function SymbolicIndexingInterface.is_variable(sys::AbstractSystem, sym)
352352 return sym in 1 : length (variable_symbols (sys))
353353 end
354354 if has_index_cache (sys) && (ic = get_index_cache (sys)) != = nothing
355- return is_variable (ic, sym) || istree (sym) && operation (sym) === getindex &&
356- is_variable (ic, first (arguments (sym)))
355+ return is_variable (ic, sym) ||
356+ istree (sym) && operation (sym) === getindex &&
357+ is_variable (ic, first (arguments (sym)))
357358 end
358359 return any (isequal (sym), variable_symbols (sys)) ||
359360 hasname (sym) && is_variable (sys, getname (sym))
@@ -379,8 +380,8 @@ function SymbolicIndexingInterface.variable_index(sys::AbstractSystem, sym)
379380 return if (idx = variable_index (ic, sym)) != = nothing
380381 idx
381382 elseif istree (sym) && operation (sym) === getindex &&
382- (idx = variable_index (ic, first (arguments (sym)))) != = nothing
383- idx[arguments (sym)[begin + 1 : end ]. .. ]
383+ (idx = variable_index (ic, first (arguments (sym)))) != = nothing
384+ idx[arguments (sym)[( begin + 1 ) : end ]. .. ]
384385 else
385386 nothing
386387 end
415416function SymbolicIndexingInterface. is_parameter (sys:: AbstractSystem , sym)
416417 sym = unwrap (sym)
417418 if has_index_cache (sys) && (ic = get_index_cache (sys)) != = nothing
418- return is_parameter (ic, sym) || istree (sym) && operation (sym) === getindex &&
419- is_parameter (ic, first (arguments (sym)))
419+ return is_parameter (ic, sym) ||
420+ istree (sym) && operation (sym) === getindex &&
421+ is_parameter (ic, first (arguments (sym)))
420422 end
421423 if unwrap (sym) isa Int
422424 return unwrap (sym) in 1 : length (parameter_symbols (sys))
@@ -441,8 +443,8 @@ function SymbolicIndexingInterface.parameter_index(sys::AbstractSystem, sym)
441443 return if (idx = parameter_index (ic, sym)) != = nothing
442444 idx
443445 elseif istree (sym) && operation (sym) === getindex &&
444- (idx = parameter_index (ic, first (arguments (sym)))) != = nothing
445- ParameterIndex (idx. portion, (idx. idx... , arguments (sym)[begin + 1 : end ]. .. ))
446+ (idx = parameter_index (ic, first (arguments (sym)))) != = nothing
447+ ParameterIndex (idx. portion, (idx. idx... , arguments (sym)[( begin + 1 ) : end ]. .. ))
446448 else
447449 nothing
448450 end
@@ -1701,7 +1703,6 @@ function linearization_function(sys::AbstractSystem, inputs,
17011703 u0, _p, _ = get_u0_p (sys, x0, p; use_union = false , tofloat = true )
17021704 ps = parameters (sys)
17031705 if has_index_cache (sys) && get_index_cache (sys) != = nothing
1704- @show p full_parameters (sys)
17051706 p = MTKParameters (sys, p)
17061707 else
17071708 p = _p
0 commit comments