Skip to content

A set of Python scripts and modules written to couple a hydrologic model with a regional glacier model

License

Notifications You must be signed in to change notification settings

pacificclimate/hydro-conductor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A set of Python scripts and modules written to couple a hydrologic model with a regional glacier model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages