From d13c4b6a43d226141ba2ce0d8857d52b424b3375 Mon Sep 17 00:00:00 2001 From: yuhangzhang0819 Date: Mon, 6 May 2024 14:18:21 -0400 Subject: [PATCH] Modifying the MAIN_DIR to a variable that will be changed by the user. --- example/data_preprocessing.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/data_preprocessing.sh b/example/data_preprocessing.sh index 541e7db..76ffc00 100755 --- a/example/data_preprocessing.sh +++ b/example/data_preprocessing.sh @@ -18,9 +18,11 @@ SUMMARY_JSON="data/open_A1_summary.json" ## 2) The directory in which the converted jpeg images will be saved JPEG_DIR="data/open_A1_jpegs" -# ============================================================================================ +# The following variable denote the location where the tool repository is stored. MAIN_DIR=$(dirname $(dirname $(realpath $0))) +# ============================================================================================ + echo "Beginning data summarization (this may take a while)" python ${MAIN_DIR}/src/utils/data_summarize.py \ -i $DATA_DIR \