Skip to content

Commit b11afde

Browse files
Copilotbemcdonnell
andcommitted
Update code for Pillow 12.1.1 compatibility
Co-authored-by: bemcdonnell <6105134+bemcdonnell@users.noreply.github.com>
1 parent 11fc25a commit b11afde

File tree

13 files changed

+3249
-2
lines changed

13 files changed

+3249
-2
lines changed

RUNOFF46.INT

38.1 KB
Binary file not shown.

swmmio/graphics/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def save_image(img, img_path, antialias=True, auto_open=False):
1010
imgSize = (img.getbbox()[2], img.getbbox()[3])
1111
if antialias:
1212
size = (int(imgSize[0] * 0.5), int(imgSize[1] * 0.5))
13-
img.thumbnail(size, Image.LANCZOS)
13+
img.thumbnail(size, Image.Resampling.LANCZOS)
1414

1515
img.save(img_path)
1616
if auto_open:

swmmio/tests/data/Pump_Control_Model.rpt

Lines changed: 337 additions & 0 deletions
Large diffs are not rendered by default.

swmmio/tests/data/RUNOFF46.INT

38.1 KB
Binary file not shown.

swmmio/tests/data/model_curve_num.rpt

Lines changed: 358 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
2+
EPA STORM WATER MANAGEMENT MODEL - VERSION 5.2 (Build 5.2.4)
3+
PYSWMM TOOLKIT API - VERSION v1.0 (2025-12-04)
4+
------------------------------------------------------------
5+
6+
7+
*************
8+
Element Count
9+
*************
10+
Number of rain gages ...... 1
11+
Number of subcatchments ... 3
12+
Number of nodes ........... 4
13+
Number of links ........... 3
14+
Number of pollutants ...... 0
15+
Number of land uses ....... 0
16+
17+
18+
****************
19+
Raingage Summary
20+
****************
21+
Data Recording
22+
Name Data Source Type Interval
23+
------------------------------------------------------------------------
24+
SCS_24h_Type_I_1in SCS_24h_Type_I_1in INTENSITY 15 min.
25+
26+
27+
********************
28+
Subcatchment Summary
29+
********************
30+
Name Area Width %Imperv %Slope Rain Gage Outlet
31+
-----------------------------------------------------------------------------------------------------------
32+
S1 1.00 500.00 100.00 0.5000 SCS_24h_Type_I_1in J1
33+
S2 2.00 500.00 100.00 0.5000 SCS_24h_Type_I_1in J2
34+
S3 3.00 500.00 100.00 0.5000 SCS_24h_Type_I_1in J3
35+
36+
37+
************
38+
Node Summary
39+
************
40+
Invert Max. Ponded External
41+
Name Type Elev. Depth Area Inflow
42+
-------------------------------------------------------------------------------
43+
J1 JUNCTION 20.73 15.00 0.0 Yes
44+
J3 JUNCTION 6.55 15.00 0.0 Yes
45+
J4 OUTFALL 0.00 0.00 0.0
46+
J2 STORAGE 13.39 15.00 0.0 Yes
47+
48+
49+
************
50+
Link Summary
51+
************
52+
Name From Node To Node Type Length %Slope Roughness
53+
---------------------------------------------------------------------------------------------
54+
C1:C2 J1 J2 CONDUIT 244.6 3.0002 0.0100
55+
C2 J2 J3 IDEAL PUMP
56+
C3 J3 J4 WEIR
57+
58+
59+
*********************
60+
Cross Section Summary
61+
*********************
62+
Full Full Hyd. Max. No. of Full
63+
Conduit Shape Depth Area Rad. Width Barrels Flow
64+
---------------------------------------------------------------------------------------
65+
C1:C2 CIRCULAR 1.00 0.79 0.25 1.00 1 8.02
66+
67+
68+
****************
69+
Analysis Options
70+
****************
71+
Flow Units ............... CFS
72+
Process Models:
73+
Rainfall/Runoff ........ YES
74+
RDII ................... NO
75+
Snowmelt ............... NO
76+
Groundwater ............ NO
77+
Flow Routing ........... YES
78+
Ponding Allowed ........ NO
79+
Water Quality .......... NO
80+
Infiltration Method ...... HORTON
81+
Flow Routing Method ...... DYNWAVE
82+
Surcharge Method ......... EXTRAN
83+
Starting Date ............ 11/01/2015 14:00:00
84+
Ending Date .............. 11/04/2015 00:00:00
85+
Antecedent Dry Days ...... 0.0
86+
Report Time Step ......... 00:01:00
87+
Wet Time Step ............ 00:05:00
88+
Dry Time Step ............ 00:05:00
89+
Routing Time Step ........ 1.00 sec
90+
Variable Time Step ....... YES
91+
Maximum Trials ........... 8
92+
Number of Threads ........ 1
93+
Head Tolerance ........... 0.005000 ft
94+
95+
96+
*********************
97+
Control Actions Taken
98+
*********************
99+
100+
101+
************************** Volume Depth
102+
Runoff Quantity Continuity acre-feet inches
103+
************************** --------- -------
104+
Total Precipitation ...... 0.500 1.000
105+
Evaporation Loss ......... 0.000 0.000
106+
Infiltration Loss ........ 0.000 0.000
107+
Surface Runoff ........... 0.482 0.964
108+
Final Storage ............ 0.019 0.038
109+
Continuity Error (%) ..... -0.116
110+
111+
112+
************************** Volume Volume
113+
Flow Routing Continuity acre-feet 10^6 gal
114+
************************** --------- ---------
115+
Dry Weather Inflow ....... 38.346 12.496
116+
Wet Weather Inflow ....... 0.482 0.157
117+
Groundwater Inflow ....... 0.000 0.000
118+
RDII Inflow .............. 0.000 0.000
119+
External Inflow .......... 14.380 4.686
120+
External Outflow ......... 44.585 14.529
121+
Flooding Loss ............ 8.619 2.809
122+
Evaporation Loss ......... 0.000 0.000
123+
Exfiltration Loss ........ 0.000 0.000
124+
Initial Stored Volume .... 0.000 0.000
125+
Final Stored Volume ...... 0.002 0.001
126+
Continuity Error (%) ..... 0.001
127+
128+
129+
***************************
130+
Time-Step Critical Elements
131+
***************************
132+
None
133+
134+
135+
********************************
136+
Highest Flow Instability Indexes
137+
********************************
138+
All links are stable.
139+
140+
141+
*********************************
142+
Most Frequent Nonconverging Nodes
143+
*********************************
144+
Convergence obtained at all time steps.
145+
146+
147+
*************************
148+
Routing Time Step Summary
149+
*************************
150+
Minimum Time Step : 0.50 sec
151+
Average Time Step : 1.00 sec
152+
Maximum Time Step : 1.00 sec
153+
% of Time in Steady State : 0.00
154+
Average Iterations per Step : 2.00
155+
% of Steps Not Converging : 0.00
156+
Time Step Frequencies :
157+
1.000 - 0.871 sec : 100.00 %
158+
0.871 - 0.758 sec : 0.00 %
159+
0.758 - 0.660 sec : 0.00 %
160+
0.660 - 0.574 sec : 0.00 %
161+
0.574 - 0.500 sec : 0.00 %
162+
163+
164+
***************************
165+
Subcatchment Runoff Summary
166+
***************************
167+
168+
------------------------------------------------------------------------------------------------------------------------------
169+
Total Total Total Total Imperv Perv Total Total Peak Runoff
170+
Precip Runon Evap Infil Runoff Runoff Runoff Runoff Runoff Coeff
171+
Subcatchment in in in in in in in 10^6 gal CFS
172+
------------------------------------------------------------------------------------------------------------------------------
173+
S1 1.00 0.00 0.00 0.00 0.96 0.00 0.96 0.03 0.61 0.964
174+
S2 1.00 0.00 0.00 0.00 0.96 0.00 0.96 0.05 1.19 0.964
175+
S3 1.00 0.00 0.00 0.00 0.96 0.00 0.96 0.08 1.71 0.963
176+
177+
178+
******************
179+
Node Depth Summary
180+
******************
181+
182+
---------------------------------------------------------------------------------
183+
Average Maximum Maximum Time of Max Reported
184+
Depth Depth HGL Occurrence Max Depth
185+
Node Type Feet Feet Feet days hr:min Feet
186+
---------------------------------------------------------------------------------
187+
J1 JUNCTION 15.00 15.00 35.73 0 00:00 15.00
188+
J3 JUNCTION 1.98 2.37 8.91 0 10:00 2.37
189+
J4 OUTFALL 0.00 0.00 0.00 0 00:00 0.00
190+
J2 STORAGE 0.00 0.00 13.39 0 00:00 0.00
191+
192+
193+
*******************
194+
Node Inflow Summary
195+
*******************
196+
197+
-------------------------------------------------------------------------------------------------
198+
Maximum Maximum Lateral Total Flow
199+
Lateral Total Time of Max Inflow Inflow Balance
200+
Inflow Inflow Occurrence Volume Volume Error
201+
Node Type CFS CFS days hr:min 10^6 gal 10^6 gal Percent
202+
-------------------------------------------------------------------------------------------------
203+
J1 JUNCTION 9.61 9.61 0 10:00 14.1 14.1 0.005
204+
J3 JUNCTION 2.71 12.12 0 10:00 1.64 14.5 0.001
205+
J4 OUTFALL 0.00 12.12 0 10:00 0 14.5 0.000
206+
J2 STORAGE 2.19 9.41 0 10:00 1.61 12.9 0.000
207+
208+
209+
**********************
210+
Node Surcharge Summary
211+
**********************
212+
213+
Surcharging occurs when water rises above the top of the highest conduit.
214+
---------------------------------------------------------------------
215+
Max. Height Min. Depth
216+
Hours Above Crown Below Rim
217+
Node Type Surcharged Feet Feet
218+
---------------------------------------------------------------------
219+
J1 JUNCTION 58.00 14.000 0.000
220+
221+
222+
*********************
223+
Node Flooding Summary
224+
*********************
225+
226+
Flooding refers to all water that overflows a node, whether it ponds or not.
227+
--------------------------------------------------------------------------
228+
Total Maximum
229+
Maximum Time of Max Flood Ponded
230+
Hours Rate Occurrence Volume Depth
231+
Node Flooded CFS days hr:min 10^6 gal Feet
232+
--------------------------------------------------------------------------
233+
J1 58.00 4.01 0 00:00 2.808 0.000
234+
235+
236+
**********************
237+
Storage Volume Summary
238+
**********************
239+
240+
------------------------------------------------------------------------------------------------
241+
Average Avg Evap Exfil Maximum Max Time of Max Maximum
242+
Volume Pcnt Pcnt Pcnt Volume Pcnt Occurrence Outflow
243+
Storage Unit 1000 ft³ Full Loss Loss 1000 ft³ Full days hr:min CFS
244+
------------------------------------------------------------------------------------------------
245+
J2 0.001 0.0 0.0 0.0 0.001 0.0 0 00:00 9.41
246+
247+
248+
***********************
249+
Outfall Loading Summary
250+
***********************
251+
252+
-----------------------------------------------------------
253+
Flow Avg Max Total
254+
Freq Flow Flow Volume
255+
Outfall Node Pcnt CFS CFS 10^6 gal
256+
-----------------------------------------------------------
257+
J4 100.00 9.30 12.12 14.528
258+
-----------------------------------------------------------
259+
System 100.00 9.30 12.12 14.528
260+
261+
262+
********************
263+
Link Flow Summary
264+
********************
265+
266+
-----------------------------------------------------------------------------
267+
Maximum Time of Max Maximum Max/ Max/
268+
|Flow| Occurrence |Veloc| Full Full
269+
Link Type CFS days hr:min ft/sec Flow Depth
270+
-----------------------------------------------------------------------------
271+
C1:C2 CONDUIT 7.22 0 00:01 18.36 0.90 0.50
272+
C2 PUMP 9.41 0 10:00
273+
C3 WEIR 12.12 0 10:00 0.47
274+
275+
276+
***************************
277+
Flow Classification Summary
278+
***************************
279+
280+
-------------------------------------------------------------------------------------
281+
Adjusted ---------- Fraction of Time in Flow Class ----------
282+
/Actual Up Down Sub Sup Up Down Norm Inlet
283+
Conduit Length Dry Dry Dry Crit Crit Crit Crit Ltd Ctrl
284+
-------------------------------------------------------------------------------------
285+
C1:C2 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
286+
287+
288+
*************************
289+
Conduit Surcharge Summary
290+
*************************
291+
292+
----------------------------------------------------------------------------
293+
Hours Hours
294+
--------- Hours Full -------- Above Full Capacity
295+
Conduit Both Ends Upstream Dnstream Normal Flow Limited
296+
----------------------------------------------------------------------------
297+
C1:C2 0.01 58.00 0.01 0.01 0.01
298+
299+
300+
***************
301+
Pumping Summary
302+
***************
303+
304+
---------------------------------------------------------------------------------------------------------
305+
Min Avg Max Total Power % Time Off
306+
Percent Number of Flow Flow Flow Volume Usage Pump Curve
307+
Pump Utilized Start-Ups CFS CFS CFS 10^6 gal Kw-hr Low High
308+
---------------------------------------------------------------------------------------------------------
309+
C2 100.00 1 0.00 8.25 9.41 12.888 196.88 0.0 0.0
310+
311+
312+
Analysis begun on: Thu Feb 12 14:58:28 2026
313+
Analysis ended on: Thu Feb 12 14:58:29 2026
314+
Total elapsed time: 00:00:01

0 commit comments

Comments
 (0)