Skip to content

Commit 93dea70

Browse files
committed
revert
1 parent 9e8b307 commit 93dea70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ function baltrunc_unstab(sys::LTISystem, info=nothing; residual=false, n=missing
141141
if info !== nothing && hasproperty(info, :stab)
142142
@unpack stab, unstab = info
143143
else
144-
stab, unstab, sep = stab_unstab(sys; kwargs...)
144+
stab, unstab = DescriptorSystems.gsdec(dss(sys); job="stable", kwargs...)
145145
end
146146
nx_unstab = size(unstab.A, 1)
147147
if n isa Integer && n < nx_unstab
148148
error("The model contains $(nx_unstab) poles outside the stability region, the reduced-order model must be of at least this order.")
149149
end
150150
sysr, hs = DescriptorSystems.gbalmr(stab; matchdc=residual, ord=n-nx_unstab, kwargs...)
151-
ss(sysr + unstab), hs, (; stab, unstab, sep)
151+
ss(sysr + unstab), hs, (; stab, unstab)
152152
end
153153

154154

0 commit comments

Comments
 (0)