Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jan 16, 2025
1 parent 8f629df commit e9ae4d4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/SymbolicControlSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,6 @@ function ControlSystemsBase.tf(sys::StateSpace{TE,<:Sym}) where TE
tf(simplify(n / p), sys.timeevol)
end

function Base.:(*)(A::AbstractMatrix{Bool}, B::AbstractMatrix{<:Sym})
# This is a hack to allow ROC.connect with named systems of Syms
@show A
@show B
try
@show Bb = convert.(Bool, B)
return float.(A) * Bb
catch
@show (1.0 .* B)
return float.(A) * (1.0 .* B)
end
end


function ControlSystemsBase.minreal(sys::StateSpace{<:Any,NumOrDiv})
# sys |> Symb.Num .|> Symb.symbolics_to_sympy .|> sp.simplify
nsys = Num(sys)
Expand Down

0 comments on commit e9ae4d4

Please sign in to comment.