-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAE_toy.sh
More file actions
37 lines (29 loc) · 914 Bytes
/
AE_toy.sh
File metadata and controls
37 lines (29 loc) · 914 Bytes
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
#!/bin/bash
DIR=$VSIM_HOME/test/toy
echo "Clean cached files"
cd $DIR
rm -rf table_1.json 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 about 20 minutes)"
cd $VSIM_HOME
python scripts/run_se_cmds.py $DIR/se_cmds.txt
if [ ! -d "$DIR/dump" ]; then
echo "No dumped files. exit"
exit 1
fi
echo "Running fingerprint generation (This can take about 2 minutes)"
python $DIR/fp-gen.py
if [ ! -d "$DIR/fp-refined" ]; then
echo "No refined fingerprints. exit"
exit 1
fi
echo "Running comparison"
python $DIR/test_pool_pairwise_match.py
echo "There should be a newly generated table_1.json"
echo "Show result of toy (something similar to Table III)"
python $DIR/show_table.py -i $DIR/table_1.json