File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -718,14 +718,14 @@ function add_initialization_parameters(sys::AbstractSystem)
718718end
719719
720720"""
721- Returns true if the variable or parameter `var ` is of the form `Initial(x)`.
722- """
723- function isInitial (var )
724- var = unwrap (var )
725- if iscall (var )
726- operation (var ) isa Initial && return true
727- if operation (var ) === getindex
728- operation (arguments (var )[1 ]) isa Initial && return true
721+ Returns true if the parameter `p ` is of the form `Initial(x)`.
722+ """
723+ function isInitial (p )
724+ p = unwrap (p )
725+ if iscall (p )
726+ operation (p ) isa Initial && return true
727+ if operation (p ) === getindex
728+ operation (arguments (p )[1 ]) isa Initial && return true
729729 end
730730 else
731731 return false
You can’t perform that action at this time.
0 commit comments