Skip to content

Commit

Permalink
Define isconnection on AnalysisPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Feb 5, 2024
1 parent c65f35a commit 907060f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Blocks/analysis_points.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Base.@kwdef mutable struct AnalysisPoint
out = nothing
name::Symbol = :nothing
end
if Base.isdefined(ModelingToolkit, :isconnection)
ModelingToolkit.isconnection(::AnalysisPoint) = true
end

Base.nameof(ap::AnalysisPoint) = ap.name

Expand Down

0 comments on commit 907060f

Please sign in to comment.