1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-09-17 18:51:17 +00:00

Fix bundles order in animation

This commit is contained in:
MoBit 2021-12-03 05:07:19 +01:00
parent ad0a8639f2
commit c21d94be44

View file

@ -130,7 +130,16 @@ function animate_after_loading(dir, animation_path, sim_consts, framerate, debug
particle_radius = sim_consts.particle_diameter / 2
interaction_r = sim_consts.interaction_r
bundle_paths = readdir("$dir/bundles"; join=true)
bundle_paths = readdir("$dir/bundles"; join=true, sort=false)
sort_perm = sortperm([
parse(Int64, s[(findfirst("bundle_", s).stop + 1):(end - length(".jld2"))]) for
s in bundle_paths
])
bundle_paths = bundle_paths[sort_perm]
sort_perm = nothing
skin_r = 0.0
@showprogress 1 for (n_bundle, bundle_path) in enumerate(bundle_paths)