-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgwac_data_run.sh
executable file
·48 lines (42 loc) · 1.18 KB
/
gwac_data_run.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
45
46
47
48
#!/bin/bash
source ~/.zshenv > /dev/null
source ./src_env.sh > /dev/null
#TEMPS="data/templates_no_ok.toml"
#TEMPS="data/template_no_ok.toml"
TEMPS="data/templates__nfd_def.toml"
#TEMPS="data/templates__nfd_def_full.toml"
#TEMPS="data/templates_no_log_nfd_def.toml"
#DATA="/data/star_extra_data/star_dataset/data/gwac"
#DATA="/home/austin/research/microlensing_star_data/star_subset"
#DATA="/home/austin/temp/data"
DATA="/home/austin/Code/star_dataset/data/gwac"
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 1 \
--fragment 1 \
--alert-threshold 200.0 \
$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