Skip to content

Commit

Permalink
Fix properly apply save-dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
ishihara-y committed Aug 28, 2023
1 parent ce80aad commit 4adaa11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/evaluate_algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ do
done

REPRODUCTION_CODE_DIR="${ROOT_DIR}/reproductions/algorithms/${BASE_ENV_NAME}/${ALGO_NAME}"
SAVE_DIR=$REPRODUCTION_CODE_DIR
if [ -n "$SAVE_DIR" ]; then
SAVE_DIR=$REPRODUCTION_CODE_DIR/$SAVE_DIR
else
SAVE_DIR=$REPRODUCTION_CODE_DIR
fi

for ENV_NAME in ${ENVS}
do
Expand Down

0 comments on commit 4adaa11

Please sign in to comment.