A set of Python scripts and modules written to couple a hydrologic model with a regional glacier model
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conductor
doc
scripts
.gitignore
.travis.yml
LICENSE.txt
README.md
pytest.ini
requirements.txt
setup.py

README.md

Hydro Conductor

Build Status Code Climate

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.

How to set up a dev environment

  • 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

How to run the tests

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.

$ pip install pytest
$ pip install mock
  • Run pytest
$ py.test