Skip to content

Commit fdcac6f

Browse files
refactor: unwrap in causal variable connect
1 parent 1dcf7c6 commit fdcac6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/systems/analysis_points.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ function Symbolics.connect(
213213
outs::ConnectableSymbolicT...; verbose = true)
214214
allvars = (in, out, outs...)
215215
validate_causal_variables_connection(allvars)
216-
return AnalysisPoint() ~ AnalysisPoint(in, name, [out; collect(outs)]; verbose)
216+
return AnalysisPoint() ~ AnalysisPoint(
217+
unwrap(in), name, unwrap.([out; collect(outs)]); verbose)
217218
end
218219

219220
"""

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function Symbolics.connect(var1::ConnectableSymbolicT, var2::ConnectableSymbolic
152152
vars::ConnectableSymbolicT...)
153153
allvars = (var1, var2, vars...)
154154
validate_causal_variables_connection(allvars)
155-
return Equation(Connection(), Connection(map(SymbolicWithNameof, allvars)))
155+
return Equation(Connection(), Connection(map(SymbolicWithNameof, unwrap.(allvars))))
156156
end
157157

158158
function flowvar(sys::AbstractSystem)

0 commit comments

Comments
 (0)