Skip to content

Commit 5732ce3

Browse files
fix: handle Const in connection expansion
1 parent 3e9aab2 commit 5732ce3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/systems/analysis_points.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Remove all `AnalysisPoint`s in `sys` and any of its subsystems, replacing them b
250250
"""
251251
function remove_analysis_points(sys::AbstractSystem)
252252
eqs = map(get_eqs(sys)) do eq
253-
eq.lhs isa AnalysisPoint ? to_connection(eq.rhs) : eq
253+
value(eq.lhs) isa AnalysisPoint ? to_connection(value(eq.rhs)) : eq
254254
end
255255
@set! sys.eqs = eqs
256256
@set! sys.systems = map(remove_analysis_points, get_systems(sys))

src/systems/connectors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ function returned from `generate_isouter`.
632632
"""
633633
function handle_maybe_connect_equation!(eqs, state::AbstractConnectionState,
634634
eq::Equation, namespace::Vector{Symbol}, isouter)
635-
lhs = eq.lhs
636-
rhs = eq.rhs
635+
lhs = value(eq.lhs)
636+
rhs = value(eq.rhs)
637637

638638
if !(lhs isa Connection)
639639
# split connections and equations

0 commit comments

Comments
 (0)