-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_config_3.sh
executable file
·44 lines (39 loc) · 1.02 KB
/
run_config_3.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
43
44
#!/bin/bash
source ~/.zshenv > /dev/null
source ./src_env.sh > /dev/null
#TEMPS="data/template_no_ok.toml"
#TEMPS="data/templates_no_ok.toml"
#TEMPS="data/templates__nfd_def.toml"
TEMPS="/home/austin/Data/templates/templates-1800.0x87616.0-1x625.toml"
DATA="/home/austin/temp/temp.db"
function safe_call {
if [[ $1 == "" ]]
then
opt=""
else
opt="--$1"
fi
# fragment should cut time to run by x
RUST_BACKTRACE=1 cargo run $opt --\
--input ${DATA} \
--templates-file ${TEMPS} \
--noise .06 \
--rho 4.0 \
--window-length $2 \
--skip-delta 15 \
--fragment 1 \
--plot true \
--alert-threshold 20000 \
$3 $4 $5 $6 $7
}
case $1 in
"release")
safe_call $1 $2 $3 $4 $5 $6 $7
;;
"debug")
safe_call "" $2 $3 $4 $5 $6 $7
;;
*)
echo "Must use either release or debug as options."
;;
esac