Skip to content

Commit

Permalink
Merge pull request #9 from MRC-CSO-SPHSU/extra_options
Browse files Browse the repository at this point in the history
added extra checks in sh file
  • Loading branch information
andrewbaxter439 authored Sep 29, 2023
2 parents 7471c74 + 8405b1b commit 5819beb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions do_full_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,25 @@ then
exit_abnormal
fi

if ! test -f simpaths.jar
then
echo "This must be run in the same directory as the compiled (with dependencies) \`simpaths.jar\`"
exit_abnormal
fi

if ! test -d input
then
echo "This must be run in the same directory as the \`input/\` folder"
exit_abnormal
fi

if ! test -d output/logs
then
mkdir -p output/logs
fi

# Runs 1,000 runs as 50 sequential runs of n=20 with 50 unique starting seeds

parallel java -jar simpaths.jar -r {} -n $BATCH_SIZE \
-p $POPULATION_SIZE \
-s $START_YEAR \
Expand All @@ -128,6 +146,7 @@ parallel java -jar simpaths.jar -r {} -n $BATCH_SIZE \
-f \
::: {100..5000..100}


# Tidy output folders, removing empty database folders and redundant input folders (keeps csvs)
rm -r ./output/202*/database ./output/202*/input

Expand Down

0 comments on commit 5819beb

Please sign in to comment.