You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+46-9
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,14 @@ using CMake and the Microsoft Visual Studio C compiler on Windows:
46
46
Readme file resides (which should have 'src' as a sub-directory
47
47
underneath it).
48
48
49
-
2. Issue the following commands:
49
+
2. Issue the following command to create the directory for storing the built binaries:
50
50
51
51
```bash
52
52
mkdir build
53
53
cd build
54
54
```
55
55
56
-
3. Then enter the following CMake commands:
56
+
3. Then enter the following CMake commands to build the binaries:
57
57
58
58
```bash
59
59
cmake -G <compiler> .. -A <platform>
@@ -77,22 +77,59 @@ cmake --build .
77
77
The resulting shared object library (libswmm5.so or libswmm5.dylib) and
78
78
command line executable (runswmm) will appear in the build directory.
79
79
80
-
The exprimental python bindings can be built and installed locally using the following command.
80
+
### Python Bindings (Experimental)
81
+
82
+
Experimental python bindings for the SWMM API are being developed to support regression and benchmark testing as well as other applications. _**These bindings are still under development and testing and has yet to be cleared through US EPA ORD's official quality assurance review process**_. The exprimental python bindings can be built and installed locally using the following command.
81
83
82
84
```bash
83
85
cd python
84
86
python -m pip install -r requirements.txt
85
87
python -m pip install .
86
88
```
87
89
Users may also build python wheels for installation or distribution. Once the python bindings
88
-
have been validated and cleared through EPA'S clearance process, they will be available for installation
89
-
via ropsitories such as pypi.
90
+
have been validated and cleared through EPA's quality assuracnce clearance process, they will be available for installation via package indexing repositories such as pypi.
91
+
92
+
Example usage of python bindings can be found below. More extensive documentation will be provided once cleared.
93
+
94
+
```python
95
+
96
+
from epaswmm import solver
97
+
from epaswmm.solver import Solver
98
+
from epaswmm.output import Output
99
+
100
+
with Solver(inp_file="input_file.inp") as swmm_solver:
101
+
102
+
# Open swmm file and initialize objects
103
+
swmm_solver.initialize()
104
+
105
+
# Set initialization parameters e.g., time step stride, start date, end date etc.
Unit tests and regression tests have been developed for both the natively compiled SWMM computational engine and output toolkit as
94
-
well as their respective python bindings. Unit tests for the natively compiled toolkits use the Boost 1.67.0 library and can be
95
-
compiled by adding DBUILD_TESTS=ON flag during the cmake build phase as shown below:
132
+
Unit tests and regression tests have been developed for both the natively compiled SWMM computational engine and output toolkit as well as their respective python bindings. Unit tests for the natively compiled toolkits use the Boost 1.67.0 library and can be compiled by adding DBUILD_TESTS=ON flag during the cmake build phase as shown below:
The source code distributed here is identical to the code found at the official [SWMM website](https://www.epa.gov/water-research/storm-water-management-model-swmm).
117
154
The SWMM website also hosts the official manuals and installation binaries for the SWMM software.
118
155
119
-
A live web version of the SWMM documentation of the API and user manuals can be found on the [SWMM GitHub Pages website](https://usepa.github.io/Stormwater-Management-Model). Note that this is an alpha version that is still under development and has yet to go through EPA'S official QAQC review process.
156
+
A live web version of the SWMM documentation of the API and user manuals can be found on the [SWMM GitHub Pages website](https://usepa.github.io/Stormwater-Management-Model). Note that this is an experimental version that is still under development and has yet to go through EPA'S official quality assurance review process.
120
157
121
158
## Disclaimer
122
159
The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity, confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.
0 commit comments