mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +00:00
Fix bundles order in animation
This commit is contained in:
parent
ad0a8639f2
commit
c21d94be44
1 changed files with 10 additions and 1 deletions
|
@ -130,7 +130,16 @@ function animate_after_loading(dir, animation_path, sim_consts, framerate, debug
|
||||||
particle_radius = sim_consts.particle_diameter / 2
|
particle_radius = sim_consts.particle_diameter / 2
|
||||||
interaction_r = sim_consts.interaction_r
|
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
|
skin_r = 0.0
|
||||||
|
|
||||||
@showprogress 1 for (n_bundle, bundle_path) in enumerate(bundle_paths)
|
@showprogress 1 for (n_bundle, bundle_path) in enumerate(bundle_paths)
|
||||||
|
|
Loading…
Reference in a new issue