-
Notifications
You must be signed in to change notification settings - Fork 0
/
.nfs000000000a805bcf0000034c
executable file
·191 lines (138 loc) · 4.33 KB
/
.nfs000000000a805bcf0000034c
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#!/bin/bash
echo ""
echo "-------------------------------------"
echo "Brian Cook's homework 2 solutions"
echo "-------------------------------------"
echo ""
echo "-------------------------------------"
echo "Running the Python scripts for each part"
echo "-------------------------------------"
echo ""
echo "-------------------------------------"
echo "Problem 1, Part A"
echo "-------------------------------------"
python3 homework2problem1parta.py
echo ""
echo "-------------------------------------"
echo "Problem 1, Part B"
echo "-------------------------------------"
python3 homework2problem1partb.py
echo ""
echo "-------------------------------------"
echo "Problem 1, Part C"
echo "-------------------------------------"
python3 homework2problem1partc.py
echo ""
echo "-------------------------------------"
echo "Problem 1, Part D"
echo "-------------------------------------"
python3 homework2problem1partd.py
echo ""
echo "-------------------------------------"
echo "Problem 1, Part E"
echo "-------------------------------------"
wget https://home.strw.leidenuniv.nl/~nobels/coursedata/randomnumbers.txt
python3 homework2problem1parte.py
echo ""
echo "-------------------------------------"
echo "Problem 2"
echo "-------------------------------------"
python3 homework2problem2.py
echo ""
echo "-------------------------------------"
echo "Problem 3"
echo "-------------------------------------"
python3 homework2problem3.py
echo ""
echo "-------------------------------------"
echo "Problem 4, Part A"
echo "-------------------------------------"
python3 homework2problem4parta.py
echo ""
echo "-------------------------------------"
echo "Problem 4, Part B"
echo "-------------------------------------"
python3 homework2problem4partb.py
echo ""
echo "-------------------------------------"
echo "Problem 4, Part C"
echo "-------------------------------------"
python3 homework2problem4partc.py
mv *.png plots
ffmpeg -r 30 -f image2 -s 64x64 -i './plots/frame_*.png' -vcodec libx264 -crf 25 -pix_fmt yuv420p homework2problem4partc.mp4
echo ""
echo "-------------------------------------"
echo "Problem 4, Part D"
echo "-------------------------------------"
#python3 homework2problem4partd.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part A"
echo "-------------------------------------"
python3 homework2problem5parta.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part B"
echo "-------------------------------------"
#python3 homework2problem5partb.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part C"
echo "-------------------------------------"
#python3 homework2problem5partc.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part D"
echo "-------------------------------------"
echo ""
echo "Didn't have time to do 5d-g"
echo ""
#python3 homework2problem8.py
#python3 homework2problem5partd.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part E"
echo "-------------------------------------"
#python3 homework2problem5parte.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part F"
echo "-------------------------------------"
#python3 homework2problem5partf.py
echo ""
echo "-------------------------------------"
echo "Problem 5, Part G"
echo "-------------------------------------"
#python3 homework2problem5partg.py
echo ""
echo "-------------------------------------"
echo "Problem 6"
echo "-------------------------------------"
wget strw.leidenuniv.nl/~nobels/coursedata/GRBs.txt
python3 homework2problem6.py
echo ""
echo "-------------------------------------"
echo "Problem 7"
echo "-------------------------------------"
wget strw.leidenuniv.nl/~nobels/coursedata/colliding.hdf5
python3 homework2problem7.py
echo ""
echo "-------------------------------------"
echo "Problem 8"
echo "-------------------------------------"
echo ""
echo "Didn't have time to do 8"
echo ""
#python3 homework2problem8.py
echo ""
echo "-------------------------------------"
echo "LaTeX'ing the report"
echo "-------------------------------------"
pdflatex homework2_cook.tex
bibtex homework2_cook.aux
pdflatex homework2_cook.tex
pdflatex homework2_cook.tex
echo ""
echo "-------------------------------------"
echo "My code/outputs are saved as homework2_cook.pdf"
echo "-------------------------------------"