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.
Initial
parameters
1 parent 0618a68 commit 8147aabCopy full SHA for 8147aab
src/systems/abstractsystem.jl
@@ -1465,7 +1465,11 @@ function parameters(sys::AbstractSystem; initial_parameters = false)
1465
result = unique(isempty(systems) ? ps :
1466
[ps; reduce(vcat, namespace_parameters.(systems))])
1467
if !initial_parameters && !is_initializesystem(sys)
1468
- filter!(x -> !iscall(x) || !isa(operation(x), Initial), result)
+ filter!(result) do sym
1469
+ return !(isoperator(sym, Initial) ||
1470
+ iscall(sym) && operation(sym) == getindex &&
1471
+ isoperator(arguments(sym)[1], Initial))
1472
+ end
1473
end
1474
return result
1475
0 commit comments