This repository uses the standard template that is used for most 9th Outlook modelling activities.
It quickly grabs TFC and transformation sector results (at about half way through the modelling process), and then generates results for EGEDA series in transformation and own-use and losses categories that are not generated by other sectors. Typically left over sectors that are mostly not influential.
Create a new repository. When given the option, select 'aperc-template' as the template.
Project organization is based on ideas from Good Enough Practices for Scientific Computing and the SnakeMake recommended workflow.
- Put each project in its own directory, which is named after the project.
- Put data in the
data
directory. This can be input data or data files created by scripts and notebooks in this project. - Put configuration files in the
config
directory. - Put text documents associated with the project in the
docs
directory. - Put all scripts in the
workflow/scripts
directory. - Install the Conda environment into the
workflow/envs
directory. - Put all notebooks in the
workflow/notebooks
directory. - Put final results in the
results
directory. - Name all files to reflect their content or function.
After adding any necessary dependencies to the Conda environment.yml
file you can create the
environment in a sub-directory of your project directory by running the following command.
$ conda env create --prefix ./env --file ./workflow/environment.yml
Once the new environment has been created you can activate the environment with the following command.
$ conda activate ./env
Note that the env
directory is not under version control as it can always be re-created from
the environment.yml
file as necessary.
If you add (remove) dependencies to (from) the environment.yml
file after the environment has
already been created, then you can update the environment with the following command.
$ conda env update --prefix ./env --file ./workflow/environment.yml --prune
The list of explicit dependencies for the project are listed in the environment.yml
file. To see the full list of packages installed into the environment run the following command.
conda list --prefix ./env