Skip to content

Commit 19b0ef2

Browse files
authored
Merge pull request #934 from JuliaReach/auto-juliaformatter-pr
Automatic JuliaFormatter.jl run
2 parents 20cd943 + a9d40f8 commit 19b0ef2

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

docs/make.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ TAYLOR_METHODS = ["Taylor methods" => [
7878
# ]]
7979

8080
PARAMETRIC_SYSTEMS = ["Parametric systems" => [
81-
#
82-
"Parametric reachability" => "man/parametric.md"
83-
#
84-
]]
81+
#
82+
"Parametric reachability" => "man/parametric.md"
83+
#
84+
]]
8585

8686
HYBRID_SYSTEMS = ["Hybrid systems" => [
8787
#
@@ -240,7 +240,7 @@ makedocs(; sitename="ReachabilityAnalysis.jl",
240240
"Flowpipes" => "lib/flowpipes.md",
241241
"Linear solvers" => LINEAR_SOLVERS_API,
242242
"Nonlinear solvers" => NONLINEAR_SOLVERS_API,
243-
"Parametric solvers" => PARAMETRIC_SOLVERS_API,
243+
"Parametric solvers" => PARAMETRIC_SOLVERS_API,
244244
"Solutions" => "lib/solutions.md",
245245
"Discretization" => "lib/discretize.md",
246246
"Projections" => "lib/projections.md",

src/Discretization/CorrectionHullMatrixZonotope.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function discretize(ivp::IVP{<:LPCS,<:SparsePolynomialZonotope}, δ,
5151
X0 = initial_state(ivp)
5252
n = dim(X0)
5353

54-
N = eltype(X0)
54+
N = eltype(X0)
5555

5656
IDₜ = ngens(A) > 0 ? maximum(indexvector(A)) + 1 : 1
5757
Tₜ = N(0.5) * δ * Matrix(N(1) * I, n, n)

src/Discretization/discretization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ include("ForwardBackwardModule.jl")
4949

5050
# Discretize using the correction hull of the matrix zonotope exponential
5151
include("CorrectionHullMatrixZonotope.jl")
52-
@reexport using ..CorrectionHullMatrixZonotopeModule
52+
@reexport using ..CorrectionHullMatrixZonotopeModule

test/algorithms/HLBS25.jl

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
δ = T / 400
1616

1717
# recursive false
18-
alg = HLBS25(
19-
δ = δ,
20-
approx_model = CorrectionHullMatrixZonotope(),
21-
taylor_order = 5,
22-
max_order = 5,
23-
reduction_method = LazySets.GIR05(),
24-
recursive = false
25-
)
18+
alg = HLBS25(; δ=δ,
19+
approx_model=CorrectionHullMatrixZonotope(),
20+
taylor_order=5,
21+
max_order=5,
22+
reduction_method=LazySets.GIR05(),
23+
recursive=false)
2624
sol1 = solve(prob, alg; T=T)
2725

2826
@test_broken X0 set(sol[1]) #TODO add inclusion check for SPZ
@@ -35,21 +33,18 @@
3533
@test setrep(sol1) <: SparsePolynomialZonotope
3634

3735
# recursive true
38-
alg2 = HLBS25(
39-
δ = δ,
40-
approx_model = CorrectionHullMatrixZonotope(recursive = true),
41-
taylor_order = 4,
42-
max_order = 4,
43-
reduction_method = LazySets.GIR05(),
44-
recursive = true
45-
)
36+
alg2 = HLBS25(; δ=δ,
37+
approx_model=CorrectionHullMatrixZonotope(; recursive=true),
38+
taylor_order=4,
39+
max_order=4,
40+
reduction_method=LazySets.GIR05(),
41+
recursive=true)
4642
sol2 = solve(prob, alg2; T=T)
4743

4844
@test isa(sol2.alg, HLBS25)
4945
@test sol2.alg.δ == δ
5046
@test sol2.alg.max_order == 4
5147
@test sol2.alg.taylor_order == 4
5248
@test setrep(sol2) <: SparsePolynomialZonotope
53-
5449
end
5550
end

0 commit comments

Comments
 (0)