Skip to content

Commit e244438

Browse files
committed
rm comments
1 parent 79f40dd commit e244438

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/Blocks/analysis_points.jl

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,6 @@ function expand_analysis_points(sys)
143143
sys
144144
end
145145

146-
#=
147-
function ModelingToolkit.namespace_expr(ap::AnalysisPoint, sys, n = nameof(sys)) where {T}
148-
in = ap.in === nothing ? ap.in : ModelingToolkit.renamespace(n, ap.in)
149-
out = ap.out === nothing ? ap.out : ModelingToolkit.renamespace(n, ap.out)
150-
name = Symbol(n, :_, ap.name)
151-
AnalysisPoint(in, out, name)
152-
end
153-
=#
154-
155146
function Base.:(==)(ap1::AnalysisPoint, ap2::AnalysisPoint)
156147
return ap1.in == ap2.in && ap1.out == ap2.out # Name doesn't really matter if inputs and outputs are the same
157148
end
@@ -194,11 +185,9 @@ function get_sensitivity(sys, ap_name::Symbol; kwargs...)
194185
(ap = apr[]) === nothing && error("Did not find analysis point $ap")
195186
u = ap.out.u
196187
if (ns = namespace[]) !== nothing
197-
@show ns
198-
@show d = ModelingToolkit.renamespace(ns, d)
199-
@show u = ModelingToolkit.renamespace(ns, u)
188+
d = ModelingToolkit.renamespace(ns, d)
189+
u = ModelingToolkit.renamespace(ns, u)
200190
end
201-
@show u, d
202191
ModelingToolkit.linearize(sys, [d], [u]; kwargs...)
203192
end
204193

0 commit comments

Comments
 (0)