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#
Install Conda. We typically use the Miniconda Python distribution. Use Python version >=3.7.
Create a new conda environment:
conda create -n gamcr-env python=3.7
Activate your environment:
source activate gamcr-env
python prerequisites#
Install Python, we prefer the pyenv version management system, along with pyenv-virtualenv.
Install PyTorch. If you have an Nvidia GPU, be sure to install a version of PyTorch that supports it.
Downloading the package#
clone the repository:
git clone https://github.com/quentin-duchemin/GAMCR.git
install the required python packages in the virtualenv:
pip install -r requirements.txt