Go to file
junos 471aca4587 Instructions for environment variables. 2020-12-24 12:04:22 +01:00
.idea Add the rest of the .idea files to VCS. 2020-12-23 17:12:33 +01:00
config Create the environment from file. 2020-12-24 11:41:21 +01:00
.pre-commit-config.yaml Set up requirements. 2020-12-23 17:06:25 +01:00
README.md Instructions for environment variables. 2020-12-24 12:04:22 +01:00

README.md

STRAW2analysis

All analysis for the STRAW project.

To install:

  1. Create a conda virtual environment from the environment.yml file.

    cd config
    conda env create --file environment.yml
    conda activate straw2analysis
    

    If you have already created this environment, you can update it using:

    conda deactivate
    conda env update --file environment.yml
    conda activate straw2analysis
    
  2. Follow the instructions to set DB_PASSWORD as the environment variable.

    In short, use:

    cd $CONDA_PREFIX
    mkdir -p ./etc/conda/activate.d
    mkdir -p ./etc/conda/deactivate.d
    touch ./etc/conda/activate.d/env_vars.sh
    touch ./etc/conda/deactivate.d/env_vars.sh
    

    and then edit ./etc/conda/activate.d/env_vars.sh as follows:

    #!/bin/sh
    
    export DB_PASSWORD='database-password' 
    

    and ./etc/conda/deactivate.d/env_vars.sh as follows:

    #!/bin/sh
    
    unset DB_PASSWORD