This repository hosts a set of Python scripts and modules written to couple a hydrologic model with a regional glacier model. It is written for the University of Washington's Variable Infiltration Capacity hydrologic model and UBC's Regional Glacier Model.
The "conductor" executes each model as a subprocess while translating inputs and outputs from each model to match the scale and requirements of the other.
- Install Python 3
- Set up a virtual environment
$ virtualenv -p python3 env
- Activate the environment
$ source env/bin/activate
- Install the requirements
$ pip install -r requirements.txt
- Add the package to your environment's path
$ python ./setup.py develop
We have a pytest
config file in the repo at pytest.cfg
. pytest
should automatically discover all of our tests (but feel free to reconfigure through pytest.cfg
or py.test
's command line arguments.
- Install
pytest
$ pip install pytest
$ pip install mock
- Run
pytest
$ py.test