From 704f207e7be68dbd324ce0f9f8cbccf490f69d24 Mon Sep 17 00:00:00 2001 From: Maximilian Schmeller Date: Sun, 25 Dec 2022 20:36:15 +0900 Subject: [PATCH] Add a helper script for batch execution on multiple simulation runs --- batch_analyze.bash | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 batch_analyze.bash diff --git a/batch_analyze.bash b/batch_analyze.bash new file mode 100755 index 0000000..a209dd4 --- /dev/null +++ b/batch_analyze.bash @@ -0,0 +1,17 @@ +#!/bin/bash + +base="$HOME/Projects/ma-measurements" + +date -u -Iseconds | tee -a batch_analyze.log + +for file in "$base"/artifacts* +do + echo "=== Working on $file" | tee -a batch_analyze.log + out="$file/output" + mkdir -p "$out" + export ANA_NB_OUT_PATH="'$out'" + export ANA_NB_TR_PATH="'$file/tracing/max-ma-trace/ust'" + papermill ./trace-analysis.ipynb "$out"/trace-analysis.ipynb | tee -a batch_analyze.log +done + +echo "Done." | tee -a batch_analyze.log