Skip to content

Commit

Permalink
let script automatically detect latest results
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Dec 22, 2023
1 parent 791546c commit da928eb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/common/process_task_results/run/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ set -e
REPO_ROOT=$(git rev-parse --show-toplevel)
cd "$REPO_ROOT"

# settings
TASK="denoising"
TASK="dimensionality_reduction"
TASK="batch_integration"
TASK="label_projection"
DATE="20231220"

for TASK in "denoising" "dimensionality_reduction" "batch_integration" "label_projection"; do
INPUT_DIR="s3://openproblems-data/resources/$TASK/results/$DATE"
# for TASK in "label_projection"; do
BASE_DIR="s3://openproblems-data/resources/$TASK/results/"

# find subdir in bucket with latest date
DATE=$(aws s3 ls $BASE_DIR | awk '{print $2}' | grep 'run_' | sort -r | head -n 1 | sed 's/\///')

INPUT_DIR="$BASE_DIR/$DATE"
OUTPUT_DIR="../website/results/$TASK/data"

# # temp sync
Expand Down

0 comments on commit da928eb

Please sign in to comment.