Installation#

Prerequisites#

GAMCR is a Python package allowing to learn the response functions of watersheds to different precipitation events. In the following, we describe the steps to follow to get a correct environment to use our package.

conda prerequisites#

  1. Install Conda. We typically use the Miniconda Python distribution. Use Python version >=3.7.

  2. Create a new conda environment:

    conda create -n gamcr-env python=3.7
    
  3. Activate your environment:

    source activate gamcr-env
    

python prerequisites#

  1. Install Python, we prefer the pyenv version management system, along with pyenv-virtualenv.

  2. Install PyTorch. If you have an Nvidia GPU, be sure to install a version of PyTorch that supports it.

Downloading the package#

  1. clone the repository:

    git clone https://github.com/quentin-duchemin/GAMCR.git
    
  2. install the required python packages in the virtualenv:

    pip install -r requirements.txt