Skip to content

Commit 50735ea

Browse files
committed
Improve test
1 parent 3e8286f commit 50735ea

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

test/calc_lift.jl

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# SPDX-FileCopyrightText: 2024 Bart van de Lint
22
# SPDX-License-Identifier: MIT
33

4+
using Pkg
5+
if ! ("Test" keys(Pkg.project().dependencies))
6+
Pkg.activate("test")
7+
end
8+
49
using LinearAlgebra
510
using Dierckx
6-
using Plots
11+
using ControlPlots
712

813
# Define constants
914
rho = 1.0
@@ -99,7 +104,12 @@ function calc_lift(; n=10, left_line=150.0, right_line=150.0)
99104
return plot(1:n*2, norm.(dL_dα(α_0 +/2 + i*dα) *for i in 1:n*2), title="Lift per segment")
100105
end
101106

102-
# println(calc_lift())
103-
# println(calc_lift(n=10, left_line=149, right_line=149.9))
104-
savefig(calc_lift(n=100, left_line=149.9, right_line=149), "n=100")
105-
savefig(calc_lift(n=5, left_line=149.9, right_line=149), "n=5")
107+
display(calc_lift())
108+
sleep(1)
109+
display(calc_lift(n=10, left_line=149, right_line=149.9))
110+
sleep(1)
111+
plt.close("all")
112+
113+
# TODO: figure out how the results shall be tested
114+
# save("n_100.jld2", calc_lift(n=100, left_line=149.9, right_line=149))
115+
# save("n_5.jld2", calc_lift(n=5, left_line=149.9, right_line=149))

0 commit comments

Comments
 (0)