Advanced Usage
A collection of more advanced use cases and how to approach them.
Using different Pkg environments for different experiments/runs
By default activity will take place in a default wavi_test
Pkg environment.
You can set WAVI_ENV
to create / use different environments for different experiments / runs!
For example:
Please read here for more information about Julia environments.
Pulling code from a template to existing case directory
First, check the differences between the original template (template_bas/
) and your current case directory (anewcase/
):
This will show you files you have updated in your case directory, since copying them over from the template.
You can partially rsync these files to only transfer updates.
For example, if we had changed template_bas/code/myfunction.jl
, and wanted to move this
change to anewcase/code/myfunction.jl
:
rsync --inplace --no-whole-file cases/template_bas/code/myfunction.jl cases/anewcase/code/myfunction.jl
This should update myfunction.jl
in anewcase
with changes made in template_bas/code/myfunction.jl
.
Overwriting existing destination file
Take some care with the approach, this will overwrite any changes you have made to
cases/anewcase/code/myfunction.jl
that do not appear in template_bas/code/myfunction.jl
.