Skip to content

Commit 638739b

Browse files
committed
load GLA in tests
1 parent bfe446b commit 638739b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/ControlSystemsBase/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ julia = "1.6"
4848
[extras]
4949
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
5050
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
51-
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5251
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
52+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5353
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
54+
GenericLinearAlgebra = "14197337-ba66-59df-a3e3-ca00e7dcff7a"
5455
GR = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"
5556
ImplicitDifferentiation = "57b37032-215b-411a-8a7c-41a003a55207"
5657
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
@@ -59,5 +60,4 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
5960
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6061

6162
[targets]
62-
test = ["Test", "Aqua", "ComponentArrays", "Documenter", "DSP", "FiniteDifferences", "ImplicitDifferentiation", "GR", "Plots", "SparseArrays", "StaticArrays"]
63-
63+
test = ["Test", "Aqua", "ComponentArrays", "Documenter", "DSP", "FiniteDifferences", "ImplicitDifferentiation", "GenericLinearAlgebra", "GR", "Plots", "SparseArrays", "StaticArrays"]

lib/ControlSystemsBase/src/ControlSystemsBase.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ function __init__()
242242
print(io, "\n$(exc.f) with continuous-time systems, including delay systems and nonlinear systems, require the user to first ")
243243
printstyled(io, "install and load ControlSystems.jl, or pass the keyword method = :zoh", color=:green, bold=true)
244244
print(io, " for automatic discretization (applicable to systems without delays or nonlinearities only).")
245+
elseif exc.f (eigvals!, ) && argtypes[1] <: AbstractMatrix{<:Number}
246+
printstyled(io, "\nComputing eigenvalues of a matrix with exotic element types may require `using GenericLinearAlgebra`.", color=:green, bold=true)
245247
end
246248
plots_id = Base.PkgId(UUID("91a5bcdd-55d7-5caf-9e0b-520d859cae80"), "Plots")
247249
if exc.f isa Function && nameof(exc.f) === :plot && parentmodule(argtypes[1]) == @__MODULE__() && !haskey(Base.loaded_modules, plots_id)

lib/ControlSystemsBase/test/test_analysis.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using GenericLinearAlgebra # Required to compute eigvals of a matrix with exotic element types
12
@testset "test_analysis" begin
23
## tzeros ##
34
# Examples from the Emami-Naeini & Van Dooren Paper

0 commit comments

Comments
 (0)