2020-12-23 16:18:03 +01:00
|
|
|
# STRAW2analysis
|
|
|
|
|
2020-12-23 17:16:11 +01:00
|
|
|
All analysis for the STRAW project.
|
|
|
|
|
2020-12-24 12:04:22 +01:00
|
|
|
To install:
|
|
|
|
|
|
|
|
1. Create a conda virtual environment from the `environment.yml` file.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cd config
|
|
|
|
conda env create --file environment.yml
|
|
|
|
conda activate straw2analysis
|
|
|
|
```
|
|
|
|
|
|
|
|
If you have already created this environment, you can update it using:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
conda deactivate
|
|
|
|
conda env update --file environment.yml
|
|
|
|
conda activate straw2analysis
|
|
|
|
```
|
|
|
|
|
2021-04-06 16:26:43 +02:00
|
|
|
To use this environment in the Jupyter notebooks under `./exploration/`,
|
|
|
|
you can select it under Kernel > Change kernel after running:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
ipython kernel install --user --name=straw2analysis
|
|
|
|
```
|
|
|
|
|
2020-12-24 14:03:36 +01:00
|
|
|
2. Provide an .env file to be used by `python-dotenv` which should be placed in the top folder of the application
|
|
|
|
and should have the form:
|
2020-12-24 12:04:22 +01:00
|
|
|
|
|
|
|
```
|
2020-12-24 14:03:36 +01:00
|
|
|
DB_PASSWORD=database-password
|
2020-12-24 12:04:22 +01:00
|
|
|
```
|