-
Notifications
You must be signed in to change notification settings - Fork 0
/
construct_data.sh
executable file
·35 lines (26 loc) · 1.01 KB
/
construct_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
#!/usr/bin/env bash
cd ./simulation/
bash ./simulate.sh # Create simulation. This takes a VERY LONG time. Approx 12 hours.
cd ../
#bash ./scriptOfJava.sh # Extracts the boundary surface. Please note that this often stalls. If you want to compute the boundaries yourself, you will often have to kill running java programs, and compute them individually with ./repair.sh and ./repair2.sh. See all three scripts for more details.
# Generate critical diagrams
cd ./final/
python3 GenerateCriticalDiagrams.py
cd ../
# Install local ripser and hera interfaces
cd ./Proj2Utilities/
bash ./install.sh
cd ../
# Move last-stage simulation image to correct folder for ripser
cd ./final/smoothed_boundary_points/
python3 MoveFiles.py
cd ../../
# Run ripser on image boundaries
cd ./Proj2Utilities/Part1/
python3 RunRipser.py
cd ../../
# Compute bottleneck and wasserstein distances for critical diagrams and store
cd ./Proj2Utilities/Part1/
python3 ComputeBottWass.py bubble_backup
python3 ComputeBottWass.py ripser_backup
cd ../../