From 748bf8ca8e76d7dd48ba744c8a9e405b8ee9de0a Mon Sep 17 00:00:00 2001 From: "Adam M. Stück" Date: Fri, 16 Dec 2022 21:42:15 +0100 Subject: 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. --- start | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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'}" -- cgit v1.2.3-70-g09d2