Author: Constantine Karos and Bryant McDonnell
Date: May 16, 2023
Version: 1
PySWMM versions are built and released with a multi-step workflow and requires several tools and GitHub repositories. PySWMM has a layered architecture where C and Python are used. The core is SWMM which is outfitted with an extended API. Using a tool called SWIG (Simple Wrapper Interface Generator), "typemaps" are used to clearly insert the required Python-C code (since Python is written in C) to the build and compile the library. In the final layer, PySWMM abstracts away the "C" feel and makes it Pythonic by implementing an object-oriented paradigm. See the following Figure. The project is organized into several repositories on GitHub. They span from the raw-codebases, the build process, to the testing systems.
Windows 2022 | Ubuntu-20.04 | macOS-10.15 | |
---|---|---|---|
Compiler | Visual Studio 17 2022 | gcc | clang / Xcode |
CPU | - | - | Intel, Only (M1/M2, Coming) |
Is Experimental ? | False | True | True |
Windows 2022 | Ubuntu-20.04 | macOS-10.15 | |
---|---|---|---|
cmake | |||
python>=3.6,<=3.11 | |||
swig | |||
boost | |||
Git/Github account |
- Install all required software
- Clone the SWMM repo
- Clone the ci-tools
- Make your changes to SWMM (optional)
- Adding Unit Tests
- Building SWMM
- Running Regression Tests
- Clone the SWMM-Python repo
- Modify (as required) the interfacing files
- Build Wheel (Will compile SWMM here)
- Clone the PySWMM repo
- Modify (as required)
- Adding Unit tests
- Build