Difference between revisions of "SWMM5-Python"

From assela Pathirana
Jump to navigationJump to search
(Created page with '300px|right|thumb This is a python module for running SWMM5 model via python and extract results as python objects. ==Download== * [[file:SWMM5_…')
 
Line 11: Line 11:
* Install swig  
* Install swig  
* as root run: python setup.py install
* as root run: python setup.py install
===Windows===
* Install python 2.6 or 2.7, numpy, matplotlib
* Copy _swmm5.pyd and swmm5.py to <python installation root>/Lib/site-packages directory
===Testing===
* Run swmm5_test.py in src directory.

Revision as of 20:11, 21 April 2012

QT4Agg Swmm5 python.png

This is a python module for running SWMM5 model via python and extract results as python objects.

Download

Install and Test

Linux

  • Make sure gcc and ld are available.
  • Install python (2.6 or 2.7), python-dev, numpy, matplotlib.
  • Install swig
  • as root run: python setup.py install

Windows

  • Install python 2.6 or 2.7, numpy, matplotlib
  • Copy _swmm5.pyd and swmm5.py to <python installation root>/Lib/site-packages directory

Testing

  • Run swmm5_test.py in src directory.