Skip to content

Commit 9890b26

Browse files
fix: filter equations in getvar
1 parent 115c793 commit 9890b26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/abstractsystem.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ function getvar(sys::AbstractSystem, name::Symbol; namespace = does_namespacing(
10771077

10781078
if has_eqs(sys)
10791079
for eq in get_eqs(sys)
1080+
eq isa Equation || continue
10801081
if eq.lhs isa AnalysisPoint && nameof(eq.rhs) == name
10811082
return namespace ? renamespace(sys, eq.rhs) : eq.rhs
10821083
end

0 commit comments

Comments
 (0)