summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorAdam M. Stück <adam@adast.xyz>2022-12-16 21:42:15 +0100
committerAdam M. Stück <adam@adast.xyz>2022-12-17 17:03:19 +0100
commit748bf8ca8e76d7dd48ba744c8a9e405b8ee9de0a (patch)
treed0b19acdcce8a707dc9dceff149d1a0b10040dc3 /start
parent98bc70eebf9c425866f26a916d5b49a63a1d2c8b (diff)
Write experiment details to file
Write useful details about the experiment to a 'details' file in '$OUTPUT_PATH/pipeline/details'. We now only copy the 'start' and 'run-model' scripts to the experiment's pipeline as the other scripts are not experiment specific. This speeds up the script a bit due to the reduced I/O operations.
Diffstat (limited to 'start')
-rwxr-xr-xstart16
1 files changed, 15 insertions, 1 deletions
diff --git a/start b/start
index d3b71e1..474f7be 100755
--- a/start
+++ b/start
@@ -40,7 +40,8 @@ main() {
OUTPUT_PATH="$OUTPUT_PATH/$(date -u +"%d-%m-%YT%H.%M.%S")"
mkdir -p "$OUTPUT_PATH/pipeline"
- cp -r "$PIPELINE_PATH" "$OUTPUT_PATH"
+ cp $PIPELINE_PATH/{start,run-model} "$OUTPUT_PATH/pipeline"
+ details > "$OUTPUT_PATH/pipeline/details"
start_jobs
}
@@ -56,6 +57,19 @@ start_jobs() {
done
}
+details() {
+ echo -e "BINARY:\t\t$BINARY"
+ echo -e "MODELS_PATH:\t$MODELS_PATH"
+ echo -e "OUTPUT_PATH:\t$OUTPUT_PATH"
+ echo -e "TIME_LIMIT:\t$TIME_LIMIT"
+ echo -e "NUM_PROBLEMS:\t$NUM_PROBLEMS"
+ echo
+ echo "STRATEGIES:"
+ printf ' %s\n' "${STRATEGIES[@]}"
+ echo
+ date
+}
+
serialize_array() {
declare -n _array="${1}" _str="${2}" # _array, _str => local reference vars
local IFS="${3:-$'\x01'}"