Browse Source

changed experiment name in syncscript

refactoring
Stefan Pranger 11 months ago
parent
commit
09bf9558ee
  1. 4
      syncscript.sh

4
syncscript.sh

@ -2,9 +2,9 @@
. ../env/bin/activate . ../env/bin/activate
commit_message="$(git log -1 --oneline | sed 's/\s/_/g')"
commit_message="$(git log -1 --pretty=format:"%s_%h" | sed 's/\s/_/g')"
git diff --quiet || commit_message="${commit_message}_dirty" git diff --quiet || commit_message="${commit_message}_dirty"
datetime="$(date +%Y%m%d_%H%M%S)"
datetime="$(date +%Y%-m-%dT%H:%M:%S)"
exp_name="${commit_message}-${datetime}" exp_name="${commit_message}-${datetime}"
experiment_log_dir="${2}/${exp_name}" experiment_log_dir="${2}/${exp_name}"

Loading…
Cancel
Save