-
Notifications
You must be signed in to change notification settings - Fork 7
/
run.sh
executable file
·108 lines (91 loc) · 1.71 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash
set -euo pipefail
LOG=timelog.log
echo "Start: $(date --iso-8601=seconds)" | tee $LOG
#prepare software
git submodule update --init
./build_software.sh
echo "preparation and building software: ${SECONDS}s" | tee -a $LOG
FOLDER=$(dirname $(readlink -f $BASH_SOURCE))
export TOOLBOX_PATH=${FOLDER}/software/bart
VIEWPATH=${FOLDER}/software/view
export PATH=$VIEWPATH:$PATH
# smallfov:
ref=$SECONDS
(
cd 01_02_03_smallfov
cd brain
./run.sh
./run_fig.sh
)
echo "smallfov: $(( SECONDS - ref ))s" | tee -a $LOG
# Newton-Noise
ref=$SECONDS
(
cd 04_newton_noise
cd brain
./run.sh
./run_fig.sh
)
echo "newton-noise: $(( SECONDS - ref ))s" | tee -a $LOG
# a-b
ref=$SECONDS
(
cd 05_a_b
cd brain
./run.sh
./run_fig.sh
)
echo "a-b: $(( SECONDS - ref ))s" | tee -a $LOG
# virtual-conjugate coils
ref=$SECONDS
(
cd 06_vcc
cd slice1
./run.sh
./run_fig.sh
)
echo "virtual-conjugate coils: $(( SECONDS - ref ))s" | tee -a $LOG
# phase singularities:
ref=$SECONDS
(
cd 07_phase_singularities
cd phantom
./run.sh
./run_fig.sh
cd ../head
./run.sh
./run_fig.sh
cd ../heart
./run.sh
./run_fig.sh
cd ..
./create_Phantom_Head_Heart.sh
)
echo "phase singularities: $(( SECONDS - ref ))s" | tee -a $LOG
# low-rank test
ref=$SECONDS
(
cd 08_09_lowrank
cd head_slice1
./run.sh
./run_fig.sh
cd ..
cd knee
./run.sh
./run_fig.sh
)
echo "low-rank: $(( SECONDS - ref ))s" | tee -a $LOG
# high unders
ref=$SECONDS
(
cd 10_high_unders
cd head_slice1
./run.sh
./run_fig.sh
)
echo "high undersampling: $(( SECONDS - ref ))s" | tee -a $LOG
# the pngs that come out are unoptimized and therefore quite large
# we optimize them if we find pngcrush
./pngcrush.sh || true
echo "End: $(date --iso-8601=seconds)" | tee -a $LOG