-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_data.sh
executable file
·41 lines (36 loc) · 937 Bytes
/
json_data.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
#!/bin/bash
source ~/.zshenv > /dev/null
source ./src_env.sh > /dev/null
TEMPS="data/templates__nfd_def.toml"
#TEMPS="data/templates-full.toml"
#TEMPS="data/templates-1800.0d87616.0-0.1d50.0-600x600.toml"
#DATA="/data/star_extra_data/star_dataset/data/gwac"
#DATA="/home/austin/research/star_subset"
function safe_call {
if [[ $1 == "" ]]
then
opt=""
else
opt="--$1"
fi
RUST_BACKTRACE=1 cargo run $opt --\
--input $3 \
--templates-file ${TEMPS} \
--noise .06 \
--rho 4.0 \
--window-length $2 \
--skip-delta 15 \
--fragment 1 \
--alert-threshold 1000.0
}
case $1 in
"release")
safe_call $1 $2 $3
;;
"debug")
safe_call "" $2 $3
;;
*)
echo "Must use either release or debug as options."
;;
esac