File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -143,15 +143,6 @@ function expand_analysis_points(sys)
143
143
sys
144
144
end
145
145
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
-
155
146
function Base.:(== )(ap1:: AnalysisPoint , ap2:: AnalysisPoint )
156
147
return ap1. in == ap2. in && ap1. out == ap2. out # Name doesn't really matter if inputs and outputs are the same
157
148
end
@@ -194,11 +185,9 @@ function get_sensitivity(sys, ap_name::Symbol; kwargs...)
194
185
(ap = apr[]) === nothing && error (" Did not find analysis point $ap " )
195
186
u = ap. out. u
196
187
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)
200
190
end
201
- @show u, d
202
191
ModelingToolkit. linearize (sys, [d], [u]; kwargs... )
203
192
end
204
193
You can’t perform that action at this time.
0 commit comments