Skip to content

Commit

Permalink
improve video generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 29, 2024
1 parent fc2dba5 commit b91571d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tether_08_video.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using ModelingToolkit, OrdinaryDiffEq, SteadyStateDiffEq, LinearAlgebra, Timers,
tic()
using ModelingToolkit: t_nounits as t, D_nounits as D
using ControlPlots
plt.close("all")

@with_kw mutable struct Settings3 @deftype Float64
g_earth::Vector{Float64} = [0.0, 0.0, -9.81] # gravitational acceleration [m/s²]
Expand Down Expand Up @@ -197,7 +198,8 @@ function play(se, sol, pos)
wait_until(start + 0.5 * time * 1e9)
end
if se.save
println("Run the script ./bin/export_gif to create the gif file!")
plt.close("all")
run(`./bin/export_video`)
end
nothing
end
Expand Down

0 comments on commit b91571d

Please sign in to comment.