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.
getproperty(::AbstractSystem, ::Symbol)
1 parent a033042 commit ccfe18eCopy full SHA for ccfe18e
src/systems/abstractsystem.jl
@@ -1010,6 +1010,14 @@ function Base.propertynames(sys::AbstractSystem; private = false)
1010
end
1011
1012
1013
+"""
1014
+ Base.getproperty(sys::AbstractSystem, name::Symbol)
1015
+
1016
+Access the subsystem, variable or analysis point of `sys` named `name`. To check if `sys`
1017
+will namespace the returned value, use `ModelingToolkit.does_namespacing(sys)`.
1018
1019
+See also: [`ModelingToolkit.does_namespacing`](@ref).
1020
1021
function Base.getproperty(
1022
sys::AbstractSystem, name::Symbol; namespace = does_namespacing(sys))
1023
if has_parent(sys) && (parent = get_parent(sys); parent !== nothing)
0 commit comments