The final example uses `CORBASS` via the `run` module. As stated elsewhere, this is the recommended way, since all modules are run in the right order automatically. Furthermore, checks are applied wether quantities already exist and thus do not have to be evaluated again, to save computation time. If you run this example after having run the other examples, `run` will only calculate the coefficients and save them, since the results from the exploration and integration phase are already available.
Using `run` from within the notebook is slightly different than using a terminal, we hope this is still useful. First we change the directory one level up:
%% Cell type:code id: tags:
``` python
cd../
```
%% Output
<corbass>/CORBASS
%% Cell type:markdown id: tags:
Then we run `CORBASS` for the example parameter file. From the terminal, we would change `run -i` to `python`.
%% Cell type:code id: tags:
``` python
run-irun.pyexamples/Example_Parfile.py
```
%% Output
Exploring 1450, this may take a while...
100% (15625 of 15625) |##################| Elapsed Time: 0:22:41 Time: 0:22:41
Integrating 1450, this may take a while...
100% (3375 of 3375) |####################| Elapsed Time: 1:02:05 Time: 1:02:05
<corbass>/CORBASS/corbass/evaluation.py:215: RuntimeWarning: covariance is not positive-semidefinite.
for it in par_samps]
Exploring 1550, this may take a while...
100% (15625 of 15625) |##################| Elapsed Time: 0:29:14 Time: 0:29:14
Integrating 1550, this may take a while...
100% (3375 of 3375) |####################| Elapsed Time: 1:08:58 Time: 1:08:58
%% Cell type:markdown id: tags:
Changing to the output directory, we see that the results have been saved to the disk: