-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAE_rerun_cross-optimization.sh
More file actions
50 lines (39 loc) · 1.28 KB
/
AE_rerun_cross-optimization.sh
File metadata and controls
50 lines (39 loc) · 1.28 KB
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
49
50
#!/bin/bash
DIR=$VSIM_HOME/test/cross-optimization
echo "Clean cached files"
rm $DIR/table_1.json
if [[ $1 == 'full' ]]; then
echo "Full rerun selected"
cd $DIR
rm -rf logs fp-no-refine fp-refined
rm -rf cache
rm -rf dump
find . -name "*.df.pkl" | xargs rm -rf
find . -name "*.df.*.pkl" | xargs rm -rf
find . -name "*.csv.pkl" | xargs rm -rf
mkdir -p logs
echo "Running value extraction (This can take several hours)"
cd $VSIM_HOME
bash $DIR/se_cmds.txt
if [ ! -d "$DIR/dump" ]; then
echo "No dumped files. Exit"
exit 1
fi
echo "Running fingerprint generation (This can take several hours)"
python $DIR/fp-gen.py
if [ ! -d "$DIR/fp-refined" ]; then
echo "No refined fingerprints. Exit"
exit 1
fi
python $DIR/fp-no-refine-gen.py
if [ ! -d "$DIR/fp-no-refine" ]; then
echo "No no-refine fingerprints. Exit"
exit 1
fi
fi
cd $VSIM_HOME
echo "Running comparison"
python $DIR/test_pool_pairwise_match.py
echo "There should be a newly generated $DIR/table_1.json"
echo "Show result of Table III"
python $DIR/show_table.py -i $DIR/table_1.json