-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_piece_5-9.sh
executable file
·65 lines (58 loc) · 1.58 KB
/
update_piece_5-9.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# #!/bin/bash
if [[ $# -eq 0 ]] || [[ "" == "--help" ]]
then
echo ""
echo ""
echo "Usage: $0 "
echo "Work under working directory."
echo "by Le CHEN, (chenle02@gmail.com)"
echo "Thu Mar 7 10:41:25 PM EST 2024"
echo ""
echo ""
exit 1
fi
# 1. First remove the joblib files and regenerate them
echo "1. Sweep first"
# rm *piece_5_*.joblib *type_2*.joblib *piece_9_*.joblib *type_3*.joblib *piece_all*.joblib
# ./Sweep.py
# 2. Delete the related entries in the database and then add the newly generated
echo "2. Update the sqlite database"
# entries back
#
DATABASE_PATH="simulation_results.db"
#
# # Define an array of table names
# declare -a tables=("sticky" "nonsticky" "combined" "Simulations")
#
# # Define an array of type values to delete
# declare -a types=("piece_14" "type_4" "piece_all")
#
# # Loop through each table
# for table in "${tables[@]}"; do
# # Loop through each type
# for type in "${types[@]}"; do
# # Execute the delete command
# sqlite3 $DATABASE_PATH "DELETE FROM $table WHERE type = '$type';"
# done
# done
#
# echo "Deletion completed."
rm $DATABASE_PATH
./db.py
./db_status.sh
# 3. Run ./analysis.py to generate the fluctuaions dictionary joblib files.
echo "3. Analysis"
./analysis.py
# 4. Generate the images again
echo "4. plots"
./loglogplot_stat.py
./plotfluctuations.py
# 5. Generate the video files again
echo "5. Animations"
rm *piece_5*.mp4 *type_2*.mp4 *piece_9*.mp4 *type_3*.mp4 *piece_all*.mp4
./gen_anemation.py
# 6. Generate dzi images
echo "5. Animations"
./convert_dzi.sh yes
./gen_openseadragon.py a