Add a helper script for batch execution on multiple simulation runs

This commit is contained in:
Maximilian Schmeller 2022-12-25 20:36:15 +09:00
parent 46e0b76230
commit 704f207e7b

17
batch_analyze.bash Executable file
View file

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