mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2025-09-04 09:12:35 +00:00
Restructure for RL
This commit is contained in:
parent
07b8455e24
commit
029f7f29f2
9 changed files with 339 additions and 148 deletions
|
@ -8,13 +8,13 @@ using ReCo
|
|||
function run_benchmarks(
|
||||
dir::String="";
|
||||
n_particles::Int64=1000,
|
||||
v::Float64=20.0,
|
||||
v₀::Float64=20.0,
|
||||
duration::Float64=2.0,
|
||||
n_bundle_snapshots::Int64=0,
|
||||
comment="",
|
||||
)
|
||||
if length(dir) == 0
|
||||
dir = init_sim(; n_particles=n_particles, v=v, parent_dir="benchmark")
|
||||
dir = init_sim(; n_particles=n_particles, v₀=v₀, parent_dir="benchmark")
|
||||
end
|
||||
|
||||
benchmark = @benchmark run_sim(
|
||||
|
@ -28,7 +28,7 @@ function run_benchmarks(
|
|||
f,
|
||||
Dict(
|
||||
"n_particles" => n_particles,
|
||||
"v" => v,
|
||||
"v₀" => v₀,
|
||||
"duration" => duration,
|
||||
"n_bundle_snapshots" => n_bundle_snapshots,
|
||||
"comment" => comment,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue