-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplot_figures.zsh
55 lines (42 loc) · 1.49 KB
/
plot_figures.zsh
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
#!/bin/zsh
# Run the figure plotting scripts
######## These are commented out because they take a long time to run, uncomment them if you want to run them
######## to train the model, you need to use scikit-optimize, which plays poorly with numpy, a more granular environment is suggested.
#if ! poetry run python based/data_format.py; then
# echo "Execution failed: based/data_format.py"
# exit 1
#fi
#if ! poetry run python based/based_trainer_sans_trampush.py; then
# echo "Execution failed: based/based_trainer_sans_trampush.py"
# exit 1
#fi
#if ! poetry run python based/based_trainer_full.py; then
# echo "Execution failed: based/based_trainer_full.py"
# exit 1
#fi
########
########
if ! poetry run python based/based_validation.py; then
echo "Execution failed: based/based_validation.py"
exit 1
fi
if ! poetry run python figure_plotting/reproduce_figs.py; then
echo "Execution failed: figure_plotting/reproduce_figs.py"
exit 1
fi
if ! poetry run python figure_plotting/Figure1_histogram.py; then
echo "Execution failed: figure_plotting/Figure1_histogram.py"
exit 1
fi
if ! poetry run python figure_plotting/Figure2.py; then
echo "Execution failed: figure_plotting/Figure2.py"
exit 1
fi
if ! poetry run python figure_plotting/Figure3.py; then
echo "Execution failed: figure_plotting/Figure3.py"
exit 1
fi
if ! poetry run python figure_plotting/extended_data.py; then
echo "Execution failed: figure_plotting/extended_data.py"
exit 1
fi