Difference between revisions of "SWMM5-Python"

From assela Pathirana
Jump to navigationJump to search
Line 3: Line 3:


==Download==
==Download==
* [[file:SWMM5_Python.tar.gz]]
Go to http://code.google.com/p/swmm5-ea/ and download SWMM5-x.y.z.k.win32-py2.7.exe (windows) or
SWMM5-x.y.z.k.zip (linux)


==Install and Test==
==Install and Test==
Line 13: Line 14:
===Windows===
===Windows===
* Install python 2.6 or 2.7, numpy, matplotlib
* Install python 2.6 or 2.7, numpy, matplotlib
* Copy _swmm5.pyd and swmm5.py to <python installation root>/Lib/site-packages directory
* Install the package by running SWMM5-x.y.z.k.win32-py2.7.exe
===Testing===
===Testing===
* Run swmm5_test.py in src directory.
* Run swmm5_test.py in src directory.
*;Note: This test script needs PyQt and matplotlib to run fully. (It uses matplotlib with qt4Agg to plot the output.) However, those are not required to use swmm5 package for other purposes.

Revision as of 20:38, 6 January 2013

QT4Agg Swmm5 python.png

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

Download

Go to http://code.google.com/p/swmm5-ea/ and download SWMM5-x.y.z.k.win32-py2.7.exe (windows) or SWMM5-x.y.z.k.zip (linux)

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
  • Install the package by running SWMM5-x.y.z.k.win32-py2.7.exe

Testing

  • Run swmm5_test.py in src directory.
    Note
    This test script needs PyQt and matplotlib to run fully. (It uses matplotlib with qt4Agg to plot the output.) However, those are not required to use swmm5 package for other purposes.