diff --git a/bins/inbreeding/inspect.nu b/bins/inbreeding/inspect.nu new file mode 100644 index 0000000000000000000000000000000000000000..8fe9d548d95490a7314a654074690494b5274fdf --- /dev/null +++ b/bins/inbreeding/inspect.nu @@ -0,0 +1,32 @@ +use consts.nu +use path.nu [ "remove-cache-prefix" ] + +def get-seeds [] [ nothing -> list<string> ] { + $consts.CACHE | path join '*' | into glob | ls $in | get name | each { path split | last } +} + +export def main [seed: int@get-seeds]: [ + nothing -> table< + seed: string, + timestamp: string, + env: string, + strategy: string, + k: string, + n: string, + nb_bytes: string, + m: int, + > +] { + $consts.CACHE + | path join ($seed | into string) '*' + | into glob + | ls $in + | insert m { ls $in.name | length } + | select name m + | update name { + remove-cache-prefix + | parse $consts.FULL_EXPERIMENT_FORMAT + } + | flatten --all name +} + diff --git a/bins/inbreeding/mod.nu b/bins/inbreeding/mod.nu index 6917cad337879d3b0d53c99d2a17b3a2d1b81720..f3bdbd9dfce28c9c657c0b8fb205b39c5c01445d 100644 --- a/bins/inbreeding/mod.nu +++ b/bins/inbreeding/mod.nu @@ -1,4 +1,5 @@ export use build.nu export use run.nu +export use inspect.nu export use load.nu export use plot.nu