Skip to content

Commit

Permalink
Modifying the MAIN_DIR to a variable that will be changed by the user.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhangzhang0819 committed May 6, 2024
1 parent 486faea commit d13c4b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/data_preprocessing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d13c4b6

Please sign in to comment.