-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_app4.sh
executable file
·42 lines (39 loc) · 1.01 KB
/
check_app4.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -a
#
################################################################
#
# CHECK APP4 SCRIPT FOR EASY JOB SUMMARIES
#
# EXP/OUTPUTS CAN BE DEFINED;
# OR CAN BE READ DIRECTLY FROM CUSTOM_APP4.SH (SET: READ_FROM_CUSTOM_WRAPPER=true)
#
################################################################
#
# USER OPTIONS
EXP_TO_PROCESS=HI-nl-C-05-r1
OUTPUT_LOC=/scratch/$PROJECT/$USER/APP4_output
# OR
READ_FROM_CUSTOM_WRAPPER=false
################################################################
#
USER=$USER
if [[ $MODE == "production" ]]; then
EXP_TO_PROCESS=$1
else
MODE=custom
if $READ_FROM_CUSTOM_WRAPPER; then
check_app4=true
source ./custom_app4.sh
fi
fi
#
# Set up environment
source ./subroutines/setup_env.sh
# Run completion check
echo "custom-mode APP4 checking tool"
echo "completion checking exp ${EXP_TO_PROCESS}..."
python ./subroutines/completion_check.py --multi
echo ""
grep "file name does not match expected" $JOB_OUTPUT
echo -e "\ncompleted quality checking exp ${EXP_TO_PROCESS}"