1
0
Fork 0
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:
MoBit 2021-12-12 15:29:08 +01:00
parent 07b8455e24
commit 029f7f29f2
9 changed files with 339 additions and 148 deletions

View file

@ -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,