From f3147b0729849ff1d4b2ac8bb752642878102e37 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 25 Sep 2022 23:40:37 +0200 Subject: [PATCH] Use abstract types --- visualization/Animation.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/visualization/Animation.jl b/visualization/Animation.jl index 8b6c7c7..f7a3f8a 100644 --- a/visualization/Animation.jl +++ b/visualization/Animation.jl @@ -172,8 +172,8 @@ The output is `sim_dir/animation.mkv`. Return `nothing`. # Arguments -- `sim_dir::String`: Simulation directory. -- `framerate::Int64=$DEFAULT_FRAMERATE`: Framerate +- `sim_dir::AbstractString`: Simulation directory. +- `framerate::Integer=$DEFAULT_FRAMERATE`: Framerate - `show_center_of_mass::Bool=$DEFAULT_SHOW_CENTER_OF_MASS`: Show the center of mass as transparent white circle. - `show_interaction_circle::Bool=$DEFAULT_SHOW_INTERACTION_CIRCLE`: Show the interaction radius with a circle around every particle. - `show_skin_circle::Bool=$DEFAULT_SHOW_SKIN_CIRCLE`: Show the skin radius with a circle around every particle. @@ -181,8 +181,8 @@ Return `nothing`. - `show_progress::Bool=$DEFAULT_SHOW_PROGRESS`: Show animation progress bar. """ function animate( - sim_dir::String; - framerate::Int64=DEFAULT_FRAMERATE, + sim_dir::AbstractString; + framerate::Integer=DEFAULT_FRAMERATE, show_center_of_mass::Bool=DEFAULT_SHOW_CENTER_OF_MASS, show_interaction_circle::Bool=DEFAULT_SHOW_INTERACTION_CIRCLE, show_skin_circle::Bool=DEFAULT_SHOW_SKIN_CIRCLE,