From 1e14fbd9bf80a06b87e58286d9a26da666ea890b Mon Sep 17 00:00:00 2001 From: "a.stevan" <antoine.stevan@isae-supaero.fr> Date: Mon, 3 Jun 2024 09:40:52 +0200 Subject: [PATCH] add snippet to plot all experiments --- bins/inbreeding/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bins/inbreeding/README.md b/bins/inbreeding/README.md index 208f0e31..e747cd4f 100644 --- a/bins/inbreeding/README.md +++ b/bins/inbreeding/README.md @@ -39,3 +39,17 @@ inbreeding run --options $OPTS --prng-seed $PRNG_SEED let experiment = $"($PRNG_SEED)-($OPTS.environment)-($OPTS.k)-($OPTS.n)-($OPTS.nb_bytes)" inbreeding load $experiment | inbreeding plot ``` + +## plot all experiments +```bash +use bins/inbreeding/consts.nu CACHE +use bins/inbreeding + +const FIGURES_DIR = ($CACHE | path join figures) + +mkdir $FIGURES_DIR + +for exp in (inbreeding list) { + inbreeding load $exp | inbreeding plot --save ($FIGURES_DIR | path join $exp) +} +``` -- GitLab