|
2 | 2 | printstyled("1. Installing packages\n", color = :blue) |
3 | 3 | include("install_packages.jl") |
4 | 4 |
|
5 | | -## Pulse main |
| 5 | + |
| 6 | +# Main |
| 7 | +## Pulse |
6 | 8 | printstyled("2. Runing pulse analysis\n", color = :blue) |
7 | 9 | include("fig_pulse.jl") |
8 | 10 | printstyled("Done! fig_pulse.jl created\n\n", color = :green) |
9 | | - |
10 | | -## Press main |
| 11 | +## Press |
11 | 12 | printstyled("3. Runing press analysis\n", color = :blue) |
12 | 13 | include("fig_press.jl") |
13 | 14 | printstyled("Done! fig_pulse.jl created\n", color = :green) |
14 | 15 |
|
15 | | -## Pulse main |
| 16 | + |
| 17 | +# Supplementary Information |
| 18 | + |
| 19 | +# The line below is used to run the SI version of the figure: when the 1st |
| 20 | +# argument of 'ARGS' is true, then the parameters used are the one for the SI |
| 21 | +# figure. Note that we actually use `ARGS` because this is specifically |
| 22 | +# the vector that captures external arguments. Thus using it allows us to use |
| 23 | +# arguments in the command line. So here, to run the SI version of fig_pulse, |
| 24 | +# I'd use `julia fig_pulse.jl true`. To mimic this we simply add "true" to |
| 25 | +# ARGS here rather than via an external argument |
| 26 | +push!(ARGS, "true") |
| 27 | + |
| 28 | +## Pulse |
16 | 29 | printstyled("4. Runing pulse analysis for SI\n", color = :blue) |
17 | | -include("fig_pulse.jl", ARGS = ["true"]) |
| 30 | +include("fig_pulse.jl") |
18 | 31 | printstyled("Done! fig_pulse_si.jl created\n\n", color = :green) |
19 | 32 |
|
20 | | -## Press main |
| 33 | +## Press |
21 | 34 | printstyled("5. Runing press analysis for SI\n", color = :blue) |
22 | | -include("fig_press.jl", ARGS = ["true"]) |
| 35 | +include("fig_press.jl") |
23 | 36 | printstyled("Done! fig_press_si.jl created\n\n", color = :green) |
24 | 37 |
|
25 | 38 | # Figures S2 and S3 takes ~2hours each and basically call the same functions |
26 | 39 | # as previous analyses so we skipped them on GitHub Actions |
27 | | -printstyled("Fig S1 and S2 are skipped\n\n", color = :red) |
| 40 | +printstyled("NB: Fig. S1 and S2 are skipped because they are time/energy-consuming\n\n", color = :red) |
28 | 41 |
|
29 | 42 | # Figure S2 takes ~2hours |
30 | 43 | # printstyled("Runing simulations for FigS1\n", color = :blue) |
|
0 commit comments