Skip to content

Commit 5d3b295

Browse files
authored
handle units for analysis points
1 parent 200b13a commit 5d3b295

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Blocks/analysis_points.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ function Base.hash(ap::AnalysisPoint, seed::UInt)
1818
h3 (0xd29cdc51aa6562d4 % UInt)
1919
end
2020

21+
function ModelingToolkit.get_unit(ap::AnalysisPoint)
22+
ModelingToolkit.unitless
23+
end
24+
2125
function ap_var(sys)
2226
if hasproperty(sys, :u)
2327
# collect to turn symbolic arrays into arrays of symbols

0 commit comments

Comments
 (0)