openswmm 5.3.0.dev0__tar.gz → 6.0.0.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. openswmm-6.0.0.dev0/.claude/settings.local.json +7 -0
  2. openswmm-6.0.0.dev0/CMakeLists.txt +181 -0
  3. openswmm-6.0.0.dev0/CMakePresets.json +163 -0
  4. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/LICENSE +3 -6
  5. openswmm-6.0.0.dev0/PKG-INFO +760 -0
  6. openswmm-6.0.0.dev0/README.md +714 -0
  7. openswmm-6.0.0.dev0/cmake/CythonHelpers.cmake +207 -0
  8. openswmm-6.0.0.dev0/cmake/PatchNumpyPxd.cmake +105 -0
  9. openswmm-6.0.0.dev0/create_schema_review_db.py +672 -0
  10. openswmm-6.0.0.dev0/docs/LEGACY_API_EXPANSION_PLAN.md +586 -0
  11. openswmm-6.0.0.dev0/docs/Makefile +192 -0
  12. openswmm-6.0.0.dev0/docs/_build/html/.buildinfo +4 -0
  13. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/__intersphinx_cache__/numpy_objects.inv +0 -0
  14. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/__intersphinx_cache__/python_objects.inv +0 -0
  15. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/api.doctree +0 -0
  16. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/environment.pickle +0 -0
  17. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/concepts.doctree +0 -0
  18. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/controls.doctree +0 -0
  19. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/editing.doctree +0 -0
  20. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/error_handling.doctree +0 -0
  21. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/forcing.doctree +0 -0
  22. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/gages.doctree +0 -0
  23. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/hotstart.doctree +0 -0
  24. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/index.doctree +0 -0
  25. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/inflows.doctree +0 -0
  26. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/infrastructure.doctree +0 -0
  27. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/install.doctree +0 -0
  28. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/links.doctree +0 -0
  29. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/massbalance.doctree +0 -0
  30. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/model_builder.doctree +0 -0
  31. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/nodes.doctree +0 -0
  32. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/output_reader.doctree +0 -0
  33. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/pollutants.doctree +0 -0
  34. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/quality.doctree +0 -0
  35. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/quickstart.doctree +0 -0
  36. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/solver.doctree +0 -0
  37. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/spatial.doctree +0 -0
  38. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/statistics.doctree +0 -0
  39. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/subcatchments.doctree +0 -0
  40. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/guide/tables.doctree +0 -0
  41. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/index.doctree +0 -0
  42. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/legacy/index.doctree +0 -0
  43. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/legacy/output.doctree +0 -0
  44. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/legacy/solver.doctree +0 -0
  45. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/license.doctree +0 -0
  46. openswmm-6.0.0.dev0/docs/_build/html/.doctrees/migration/swmm5_to_swmm6.doctree +0 -0
  47. openswmm-6.0.0.dev0/docs/_build/html/_images/hydrocouple_logo.png +0 -0
  48. openswmm-6.0.0.dev0/docs/_build/html/_modules/index.html +610 -0
  49. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_forcing_log.html +689 -0
  50. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_links.html +863 -0
  51. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_nodes.html +838 -0
  52. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_raingages.html +699 -0
  53. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_subcatchments.html +913 -0
  54. openswmm-6.0.0.dev0/docs/_build/html/_modules/openswmm/legacy/engine/_system.html +719 -0
  55. openswmm-6.0.0.dev0/docs/_build/html/_sources/api.rst.txt +269 -0
  56. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/concepts.rst.txt +258 -0
  57. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/controls.rst.txt +206 -0
  58. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/editing.rst.txt +270 -0
  59. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/error_handling.rst.txt +312 -0
  60. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/forcing.rst.txt +241 -0
  61. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/gages.rst.txt +218 -0
  62. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/hotstart.rst.txt +232 -0
  63. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/index.rst.txt +103 -0
  64. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/inflows.rst.txt +223 -0
  65. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/infrastructure.rst.txt +264 -0
  66. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/install.rst.txt +200 -0
  67. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/links.rst.txt +364 -0
  68. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/massbalance.rst.txt +186 -0
  69. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/model_builder.rst.txt +261 -0
  70. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/nodes.rst.txt +395 -0
  71. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/output_reader.rst.txt +264 -0
  72. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/pollutants.rst.txt +204 -0
  73. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/quality.rst.txt +242 -0
  74. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/quickstart.rst.txt +191 -0
  75. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/solver.rst.txt +350 -0
  76. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/spatial.rst.txt +251 -0
  77. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/statistics.rst.txt +263 -0
  78. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/subcatchments.rst.txt +358 -0
  79. openswmm-6.0.0.dev0/docs/_build/html/_sources/guide/tables.rst.txt +210 -0
  80. openswmm-6.0.0.dev0/docs/_build/html/_sources/index.rst.txt +151 -0
  81. openswmm-6.0.0.dev0/docs/_build/html/_sources/legacy/index.rst.txt +65 -0
  82. openswmm-6.0.0.dev0/docs/_build/html/_sources/legacy/output.rst.txt +250 -0
  83. openswmm-6.0.0.dev0/docs/_build/html/_sources/legacy/solver.rst.txt +349 -0
  84. openswmm-6.0.0.dev0/docs/_build/html/_sources/license.rst.txt +7 -0
  85. openswmm-6.0.0.dev0/docs/_build/html/_sources/migration/swmm5_to_swmm6.rst.txt +339 -0
  86. openswmm-6.0.0.dev0/docs/_build/html/_sphinx_design_static/design-tabs.js +101 -0
  87. openswmm-6.0.0.dev0/docs/_build/html/_sphinx_design_static/sphinx-design.min.css +1 -0
  88. openswmm-6.0.0.dev0/docs/_build/html/_static/base-stemmer.js +476 -0
  89. openswmm-6.0.0.dev0/docs/_build/html/_static/basic.css +906 -0
  90. openswmm-6.0.0.dev0/docs/_build/html/_static/design-tabs.js +101 -0
  91. openswmm-6.0.0.dev0/docs/_build/html/_static/doctools.js +150 -0
  92. openswmm-6.0.0.dev0/docs/_build/html/_static/documentation_options.js +13 -0
  93. openswmm-6.0.0.dev0/docs/_build/html/_static/english-stemmer.js +1066 -0
  94. openswmm-6.0.0.dev0/docs/_build/html/_static/file.png +0 -0
  95. openswmm-6.0.0.dev0/docs/_build/html/_static/hydrocouple_logo.png +0 -0
  96. openswmm-6.0.0.dev0/docs/_build/html/_static/language_data.js +13 -0
  97. openswmm-6.0.0.dev0/docs/_build/html/_static/minus.png +0 -0
  98. openswmm-6.0.0.dev0/docs/_build/html/_static/openswmm.css +14 -0
  99. openswmm-6.0.0.dev0/docs/_build/html/_static/plus.png +0 -0
  100. openswmm-6.0.0.dev0/docs/_build/html/_static/pygments.css +152 -0
  101. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/bootstrap.js +3 -0
  102. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/bootstrap.js.LICENSE.txt +5 -0
  103. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/bootstrap.js.map +1 -0
  104. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/fontawesome.js +3 -0
  105. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/fontawesome.js.LICENSE.txt +5 -0
  106. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/fontawesome.js.map +1 -0
  107. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/pydata-sphinx-theme.js +2 -0
  108. openswmm-6.0.0.dev0/docs/_build/html/_static/scripts/pydata-sphinx-theme.js.map +1 -0
  109. openswmm-6.0.0.dev0/docs/_build/html/_static/searchtools.js +693 -0
  110. openswmm-6.0.0.dev0/docs/_build/html/_static/sphinx-design.min.css +1 -0
  111. openswmm-6.0.0.dev0/docs/_build/html/_static/sphinx_highlight.js +159 -0
  112. openswmm-6.0.0.dev0/docs/_build/html/_static/styles/pydata-sphinx-theme.css +32 -0
  113. openswmm-6.0.0.dev0/docs/_build/html/_static/styles/pydata-sphinx-theme.css.map +1 -0
  114. openswmm-6.0.0.dev0/docs/_build/html/_static/styles/theme.css +2 -0
  115. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  116. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  117. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  118. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  119. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  120. openswmm-6.0.0.dev0/docs/_build/html/_static/vendor/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  121. openswmm-6.0.0.dev0/docs/_build/html/_static/webpack-macros.html +24 -0
  122. openswmm-6.0.0.dev0/docs/_build/html/api.html +18507 -0
  123. openswmm-6.0.0.dev0/docs/_build/html/genindex.html +3011 -0
  124. openswmm-6.0.0.dev0/docs/_build/html/guide/concepts.html +895 -0
  125. openswmm-6.0.0.dev0/docs/_build/html/guide/controls.html +911 -0
  126. openswmm-6.0.0.dev0/docs/_build/html/guide/editing.html +1005 -0
  127. openswmm-6.0.0.dev0/docs/_build/html/guide/error_handling.html +1035 -0
  128. openswmm-6.0.0.dev0/docs/_build/html/guide/forcing.html +958 -0
  129. openswmm-6.0.0.dev0/docs/_build/html/guide/gages.html +951 -0
  130. openswmm-6.0.0.dev0/docs/_build/html/guide/hotstart.html +960 -0
  131. openswmm-6.0.0.dev0/docs/_build/html/guide/index.html +778 -0
  132. openswmm-6.0.0.dev0/docs/_build/html/guide/inflows.html +942 -0
  133. openswmm-6.0.0.dev0/docs/_build/html/guide/infrastructure.html +1006 -0
  134. openswmm-6.0.0.dev0/docs/_build/html/guide/install.html +868 -0
  135. openswmm-6.0.0.dev0/docs/_build/html/guide/links.html +1150 -0
  136. openswmm-6.0.0.dev0/docs/_build/html/guide/massbalance.html +905 -0
  137. openswmm-6.0.0.dev0/docs/_build/html/guide/model_builder.html +997 -0
  138. openswmm-6.0.0.dev0/docs/_build/html/guide/nodes.html +1183 -0
  139. openswmm-6.0.0.dev0/docs/_build/html/guide/output_reader.html +984 -0
  140. openswmm-6.0.0.dev0/docs/_build/html/guide/pollutants.html +928 -0
  141. openswmm-6.0.0.dev0/docs/_build/html/guide/quality.html +976 -0
  142. openswmm-6.0.0.dev0/docs/_build/html/guide/quickstart.html +817 -0
  143. openswmm-6.0.0.dev0/docs/_build/html/guide/solver.html +1088 -0
  144. openswmm-6.0.0.dev0/docs/_build/html/guide/spatial.html +993 -0
  145. openswmm-6.0.0.dev0/docs/_build/html/guide/statistics.html +1004 -0
  146. openswmm-6.0.0.dev0/docs/_build/html/guide/subcatchments.html +1136 -0
  147. openswmm-6.0.0.dev0/docs/_build/html/guide/tables.html +929 -0
  148. openswmm-6.0.0.dev0/docs/_build/html/index.html +745 -0
  149. openswmm-6.0.0.dev0/docs/_build/html/legacy/index.html +723 -0
  150. openswmm-6.0.0.dev0/docs/_build/html/legacy/output.html +953 -0
  151. openswmm-6.0.0.dev0/docs/_build/html/legacy/solver.html +1028 -0
  152. openswmm-6.0.0.dev0/docs/_build/html/license.html +637 -0
  153. openswmm-6.0.0.dev0/docs/_build/html/migration/swmm5_to_swmm6.html +1033 -0
  154. openswmm-6.0.0.dev0/docs/_build/html/objects.inv +0 -0
  155. openswmm-6.0.0.dev0/docs/_build/html/py-modindex.html +696 -0
  156. openswmm-6.0.0.dev0/docs/_build/html/search.html +581 -0
  157. openswmm-6.0.0.dev0/docs/_build/html/searchindex.js +1 -0
  158. openswmm-6.0.0.dev0/docs/_static/openswmm.css +14 -0
  159. openswmm-6.0.0.dev0/docs/api.rst +269 -0
  160. openswmm-6.0.0.dev0/docs/conf.py +447 -0
  161. openswmm-6.0.0.dev0/docs/environment.yml +13 -0
  162. openswmm-6.0.0.dev0/docs/guide/concepts.rst +258 -0
  163. openswmm-6.0.0.dev0/docs/guide/controls.rst +206 -0
  164. openswmm-6.0.0.dev0/docs/guide/editing.rst +270 -0
  165. openswmm-6.0.0.dev0/docs/guide/error_handling.rst +312 -0
  166. openswmm-6.0.0.dev0/docs/guide/forcing.rst +241 -0
  167. openswmm-6.0.0.dev0/docs/guide/gages.rst +218 -0
  168. openswmm-6.0.0.dev0/docs/guide/hotstart.rst +232 -0
  169. openswmm-6.0.0.dev0/docs/guide/index.rst +103 -0
  170. openswmm-6.0.0.dev0/docs/guide/inflows.rst +223 -0
  171. openswmm-6.0.0.dev0/docs/guide/infrastructure.rst +264 -0
  172. openswmm-6.0.0.dev0/docs/guide/install.rst +200 -0
  173. openswmm-6.0.0.dev0/docs/guide/links.rst +364 -0
  174. openswmm-6.0.0.dev0/docs/guide/massbalance.rst +186 -0
  175. openswmm-6.0.0.dev0/docs/guide/model_builder.rst +261 -0
  176. openswmm-6.0.0.dev0/docs/guide/nodes.rst +395 -0
  177. openswmm-6.0.0.dev0/docs/guide/output_reader.rst +264 -0
  178. openswmm-6.0.0.dev0/docs/guide/pollutants.rst +204 -0
  179. openswmm-6.0.0.dev0/docs/guide/quality.rst +242 -0
  180. openswmm-6.0.0.dev0/docs/guide/quickstart.rst +191 -0
  181. openswmm-6.0.0.dev0/docs/guide/solver.rst +350 -0
  182. openswmm-6.0.0.dev0/docs/guide/spatial.rst +251 -0
  183. openswmm-6.0.0.dev0/docs/guide/statistics.rst +263 -0
  184. openswmm-6.0.0.dev0/docs/guide/subcatchments.rst +358 -0
  185. openswmm-6.0.0.dev0/docs/guide/tables.rst +210 -0
  186. openswmm-6.0.0.dev0/docs/images/hydrocouple_logo.png +0 -0
  187. openswmm-6.0.0.dev0/docs/index.rst +151 -0
  188. openswmm-6.0.0.dev0/docs/legacy/index.rst +65 -0
  189. openswmm-6.0.0.dev0/docs/legacy/output.rst +250 -0
  190. openswmm-6.0.0.dev0/docs/legacy/solver.rst +349 -0
  191. openswmm-6.0.0.dev0/docs/license.rst +7 -0
  192. openswmm-6.0.0.dev0/docs/make.bat +263 -0
  193. openswmm-6.0.0.dev0/docs/migration/swmm5_to_swmm6.rst +339 -0
  194. openswmm-6.0.0.dev0/docs/requirements.txt +6 -0
  195. openswmm-6.0.0.dev0/generate_geopackage_erd.py +887 -0
  196. openswmm-6.0.0.dev0/openswmm/CMakeLists.txt +113 -0
  197. openswmm-6.0.0.dev0/openswmm/__init__.py +81 -0
  198. openswmm-6.0.0.dev0/openswmm/engine/CMakeLists.txt +68 -0
  199. openswmm-6.0.0.dev0/openswmm/engine/_2d.pxd +79 -0
  200. openswmm-6.0.0.dev0/openswmm/engine/_2d.pyi +603 -0
  201. openswmm-6.0.0.dev0/openswmm/engine/_2d.pyx +681 -0
  202. openswmm-6.0.0.dev0/openswmm/engine/__init__.pxd +6 -0
  203. openswmm-6.0.0.dev0/openswmm/engine/__init__.py +257 -0
  204. openswmm-6.0.0.dev0/openswmm/engine/__init__.pyi +114 -0
  205. openswmm-6.0.0.dev0/openswmm/engine/_common.pxd +703 -0
  206. openswmm-6.0.0.dev0/openswmm/engine/_controls.pyi +131 -0
  207. openswmm-6.0.0.dev0/openswmm/engine/_controls.pyx +140 -0
  208. openswmm-6.0.0.dev0/openswmm/engine/_dates.py +35 -0
  209. openswmm-6.0.0.dev0/openswmm/engine/_dates.pyi +7 -0
  210. openswmm-6.0.0.dev0/openswmm/engine/_edit.pyi +412 -0
  211. openswmm-6.0.0.dev0/openswmm/engine/_edit.pyx +722 -0
  212. openswmm-6.0.0.dev0/openswmm/engine/_enums.py +615 -0
  213. openswmm-6.0.0.dev0/openswmm/engine/_enums.pyi +604 -0
  214. openswmm-6.0.0.dev0/openswmm/engine/_forcing.pyi +323 -0
  215. openswmm-6.0.0.dev0/openswmm/engine/_forcing.pyx +325 -0
  216. openswmm-6.0.0.dev0/openswmm/engine/_gages.pyi +220 -0
  217. openswmm-6.0.0.dev0/openswmm/engine/_gages.pyx +276 -0
  218. openswmm-6.0.0.dev0/openswmm/engine/_geopackage.pyi +422 -0
  219. openswmm-6.0.0.dev0/openswmm/engine/_geopackage.pyx +569 -0
  220. openswmm-6.0.0.dev0/openswmm/engine/_hotstart.pyi +288 -0
  221. openswmm-6.0.0.dev0/openswmm/engine/_hotstart.pyx +317 -0
  222. openswmm-6.0.0.dev0/openswmm/engine/_inflows.pyi +167 -0
  223. openswmm-6.0.0.dev0/openswmm/engine/_inflows.pyx +170 -0
  224. openswmm-6.0.0.dev0/openswmm/engine/_infrastructure.pyi +315 -0
  225. openswmm-6.0.0.dev0/openswmm/engine/_infrastructure.pyx +292 -0
  226. openswmm-6.0.0.dev0/openswmm/engine/_links.pyi +809 -0
  227. openswmm-6.0.0.dev0/openswmm/engine/_links.pyx +1040 -0
  228. openswmm-6.0.0.dev0/openswmm/engine/_massbalance.pyi +170 -0
  229. openswmm-6.0.0.dev0/openswmm/engine/_massbalance.pyx +221 -0
  230. openswmm-6.0.0.dev0/openswmm/engine/_model.pyi +343 -0
  231. openswmm-6.0.0.dev0/openswmm/engine/_model.pyx +638 -0
  232. openswmm-6.0.0.dev0/openswmm/engine/_nodes.pyi +788 -0
  233. openswmm-6.0.0.dev0/openswmm/engine/_nodes.pyx +1009 -0
  234. openswmm-6.0.0.dev0/openswmm/engine/_output_reader.pyi +472 -0
  235. openswmm-6.0.0.dev0/openswmm/engine/_output_reader.pyx +544 -0
  236. openswmm-6.0.0.dev0/openswmm/engine/_pollutants.pyi +406 -0
  237. openswmm-6.0.0.dev0/openswmm/engine/_pollutants.pyx +502 -0
  238. openswmm-6.0.0.dev0/openswmm/engine/_quality.pyi +288 -0
  239. openswmm-6.0.0.dev0/openswmm/engine/_quality.pyx +324 -0
  240. openswmm-6.0.0.dev0/openswmm/engine/_solver.pxd +15 -0
  241. openswmm-6.0.0.dev0/openswmm/engine/_solver.pyi +381 -0
  242. openswmm-6.0.0.dev0/openswmm/engine/_solver.pyx +719 -0
  243. openswmm-6.0.0.dev0/openswmm/engine/_spatial.pyi +313 -0
  244. openswmm-6.0.0.dev0/openswmm/engine/_spatial.pyx +356 -0
  245. openswmm-6.0.0.dev0/openswmm/engine/_statistics.pyi +256 -0
  246. openswmm-6.0.0.dev0/openswmm/engine/_statistics.pyx +304 -0
  247. openswmm-6.0.0.dev0/openswmm/engine/_subcatchments.pyi +687 -0
  248. openswmm-6.0.0.dev0/openswmm/engine/_subcatchments.pyx +846 -0
  249. openswmm-6.0.0.dev0/openswmm/engine/_tables.pyi +187 -0
  250. openswmm-6.0.0.dev0/openswmm/engine/_tables.pyx +217 -0
  251. openswmm-6.0.0.dev0/openswmm/legacy/CMakeLists.txt +3 -0
  252. openswmm-6.0.0.dev0/openswmm/legacy/__init__.py +13 -0
  253. openswmm-6.0.0.dev0/openswmm/legacy/engine/CMakeLists.txt +14 -0
  254. openswmm-6.0.0.dev0/openswmm/legacy/engine/__init__.py +42 -0
  255. openswmm-6.0.0.dev0/openswmm/legacy/engine/_forcing_log.py +94 -0
  256. openswmm-6.0.0.dev0/openswmm/legacy/engine/_links.py +265 -0
  257. openswmm-6.0.0.dev0/openswmm/legacy/engine/_nodes.py +237 -0
  258. openswmm-6.0.0.dev0/openswmm/legacy/engine/_raingages.py +107 -0
  259. openswmm-6.0.0.dev0/openswmm/legacy/engine/_solver.c +33790 -0
  260. {openswmm-5.3.0.dev0/openswmm/solver → openswmm-6.0.0.dev0/openswmm/legacy/engine}/_solver.pyi +64 -27
  261. openswmm-6.0.0.dev0/openswmm/legacy/engine/_solver.pyx +2043 -0
  262. openswmm-6.0.0.dev0/openswmm/legacy/engine/_subcatchments.py +282 -0
  263. openswmm-6.0.0.dev0/openswmm/legacy/engine/_system.py +133 -0
  264. openswmm-6.0.0.dev0/openswmm/legacy/engine/solver.pxd +500 -0
  265. openswmm-6.0.0.dev0/openswmm/legacy/output/CMakeLists.txt +11 -0
  266. openswmm-6.0.0.dev0/openswmm/legacy/output/__init__.py +24 -0
  267. openswmm-6.0.0.dev0/openswmm/legacy/output/_output.c +45709 -0
  268. {openswmm-5.3.0.dev0/openswmm → openswmm-6.0.0.dev0/openswmm/legacy}/output/_output.pyi +1 -1
  269. {openswmm-5.3.0.dev0/openswmm → openswmm-6.0.0.dev0/openswmm/legacy}/output/_output.pyx +1 -1
  270. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/openswmm/output/CMakeLists.txt +3 -3
  271. openswmm-6.0.0.dev0/openswmm/output/__init__.pxd +1 -0
  272. openswmm-6.0.0.dev0/openswmm/output/__init__.py +33 -0
  273. openswmm-6.0.0.dev0/openswmm/output/_output.pyi +832 -0
  274. openswmm-6.0.0.dev0/openswmm/output/_output.pyx +1665 -0
  275. openswmm-6.0.0.dev0/openswmm/output/output.pxd +368 -0
  276. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/openswmm/solver/CMakeLists.txt +3 -3
  277. openswmm-6.0.0.dev0/openswmm/solver/__init__.pxd +1 -0
  278. openswmm-6.0.0.dev0/openswmm/solver/__init__.py +41 -0
  279. openswmm-6.0.0.dev0/openswmm/solver/_solver.pyi +1298 -0
  280. openswmm-6.0.0.dev0/openswmm/solver/_solver.pyx +1912 -0
  281. openswmm-6.0.0.dev0/pyproject.toml +233 -0
  282. openswmm-6.0.0.dev0/requirements.txt +14 -0
  283. openswmm-6.0.0.dev0/scratch_rewrite_step_loop.py +56 -0
  284. openswmm-6.0.0.dev0/scratch_rewrite_step_loop_report.txt +24 -0
  285. openswmm-6.0.0.dev0/scratch_test_dates.py +94 -0
  286. openswmm-6.0.0.dev0/scripts/clean.sh +78 -0
  287. openswmm-6.0.0.dev0/scripts/repair_wheel_windows.py +76 -0
  288. openswmm-6.0.0.dev0/smoke_test.py +238 -0
  289. openswmm-6.0.0.dev0/tests/conftest.py +63 -0
  290. openswmm-6.0.0.dev0/tests/data/__pycache__/__init__.cpython-313.pyc +0 -0
  291. openswmm-6.0.0.dev0/tests/data/output/__pycache__/__init__.cpython-313.pyc +0 -0
  292. openswmm-6.0.0.dev0/tests/data/solver/__pycache__/__init__.cpython-313.pyc +0 -0
  293. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/solver/non_existent_input_file.rpt +32 -32
  294. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example.out +0 -0
  295. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example.rpt +2386 -0
  296. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_link.out +0 -0
  297. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_link.rpt +11376 -0
  298. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_node.out +0 -0
  299. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_node.rpt +11376 -0
  300. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_outfall.out +0 -0
  301. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_outfall.rpt +11376 -0
  302. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_routing.out +0 -0
  303. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_routing.rpt +11376 -0
  304. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_runoff.out +0 -0
  305. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_runoff.rpt +11376 -0
  306. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_subcatch.out +0 -0
  307. openswmm-6.0.0.dev0/tests/data/solver/site_drainage_example_subcatch.rpt +11376 -0
  308. openswmm-6.0.0.dev0/tests/engine/__init__.py +2 -0
  309. openswmm-6.0.0.dev0/tests/engine/conftest.py +175 -0
  310. openswmm-6.0.0.dev0/tests/engine/test_controls_inflows.py +39 -0
  311. openswmm-6.0.0.dev0/tests/engine/test_edit.py +445 -0
  312. openswmm-6.0.0.dev0/tests/engine/test_enums.py +208 -0
  313. openswmm-6.0.0.dev0/tests/engine/test_gages.py +96 -0
  314. openswmm-6.0.0.dev0/tests/engine/test_gages_expanded.py +44 -0
  315. openswmm-6.0.0.dev0/tests/engine/test_geopackage.py +218 -0
  316. openswmm-6.0.0.dev0/tests/engine/test_hotstart.py +117 -0
  317. openswmm-6.0.0.dev0/tests/engine/test_infrastructure.py +35 -0
  318. openswmm-6.0.0.dev0/tests/engine/test_integration.py +170 -0
  319. openswmm-6.0.0.dev0/tests/engine/test_links.py +181 -0
  320. openswmm-6.0.0.dev0/tests/engine/test_links_expanded.py +164 -0
  321. openswmm-6.0.0.dev0/tests/engine/test_massbalance.py +47 -0
  322. openswmm-6.0.0.dev0/tests/engine/test_massbalance_expanded.py +63 -0
  323. openswmm-6.0.0.dev0/tests/engine/test_model_builder.py +190 -0
  324. openswmm-6.0.0.dev0/tests/engine/test_new_api.py +239 -0
  325. openswmm-6.0.0.dev0/tests/engine/test_new_modules.py +159 -0
  326. openswmm-6.0.0.dev0/tests/engine/test_nodes.py +187 -0
  327. openswmm-6.0.0.dev0/tests/engine/test_nodes_expanded.py +159 -0
  328. openswmm-6.0.0.dev0/tests/engine/test_opened_state_editing.py +147 -0
  329. openswmm-6.0.0.dev0/tests/engine/test_output_reader.py +178 -0
  330. openswmm-6.0.0.dev0/tests/engine/test_quality_pollutants.py +25 -0
  331. openswmm-6.0.0.dev0/tests/engine/test_solver.py +258 -0
  332. openswmm-6.0.0.dev0/tests/engine/test_spatial.py +74 -0
  333. openswmm-6.0.0.dev0/tests/engine/test_subcatchments.py +115 -0
  334. openswmm-6.0.0.dev0/tests/engine/test_subcatchments_expanded.py +146 -0
  335. openswmm-6.0.0.dev0/tests/engine/test_tables.py +43 -0
  336. openswmm-6.0.0.dev0/tests/engine/test_workflow.py +93 -0
  337. openswmm-6.0.0.dev0/tests/legacy/__init__.py +3 -0
  338. openswmm-6.0.0.dev0/tests/legacy/test_output.py +339 -0
  339. openswmm-6.0.0.dev0/tests/legacy/test_phase1_enum_coverage.py +411 -0
  340. openswmm-6.0.0.dev0/tests/legacy/test_phase2_statistics.py +357 -0
  341. openswmm-6.0.0.dev0/tests/legacy/test_phase3_oop_wrappers.py +463 -0
  342. openswmm-6.0.0.dev0/tests/legacy/test_solver.py +340 -0
  343. openswmm-5.3.0.dev0/MANIFEST.in +0 -32
  344. openswmm-5.3.0.dev0/PKG-INFO +0 -228
  345. openswmm-5.3.0.dev0/README.md +0 -176
  346. openswmm-5.3.0.dev0/openswmm/CMakeLists.txt +0 -31
  347. openswmm-5.3.0.dev0/openswmm/__init__.py +0 -42
  348. openswmm-5.3.0.dev0/openswmm/_openswmm.pyx +0 -12
  349. openswmm-5.3.0.dev0/openswmm/openswmm.pxd +0 -10
  350. openswmm-5.3.0.dev0/openswmm/output/__init__.py +0 -13
  351. openswmm-5.3.0.dev0/openswmm/solver/__init__.py +0 -22
  352. openswmm-5.3.0.dev0/openswmm/solver/_solver.pyx +0 -1646
  353. openswmm-5.3.0.dev0/openswmm.egg-info/SOURCES.txt +0 -36
  354. openswmm-5.3.0.dev0/pyproject.toml +0 -79
  355. openswmm-5.3.0.dev0/setup.cfg +0 -4
  356. openswmm-5.3.0.dev0/setup.py +0 -97
  357. openswmm-5.3.0.dev0/tests/.DS_Store +0 -0
  358. openswmm-5.3.0.dev0/tests/data/.DS_Store +0 -0
  359. openswmm-5.3.0.dev0/tests/data/solver/site_drainage_example.rpt +0 -354
  360. openswmm-5.3.0.dev0/tests/test_swmm_solver.py +0 -716
  361. openswmm-5.3.0.dev0/tests/test_swwm_output.py +0 -1048
  362. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/openswmm/data/__init__.py +0 -0
  363. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/openswmm/gym/__init__.py +0 -0
  364. {openswmm-5.3.0.dev0/openswmm/solver → openswmm-6.0.0.dev0/openswmm/legacy/engine}/__init__.pxd +0 -0
  365. {openswmm-5.3.0.dev0/openswmm → openswmm-6.0.0.dev0/openswmm/legacy}/output/__init__.pxd +0 -0
  366. {openswmm-5.3.0.dev0/openswmm → openswmm-6.0.0.dev0/openswmm/legacy}/output/output.pxd +0 -0
  367. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/openswmm/solver/solver.pxd +0 -0
  368. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/__init__.py +0 -0
  369. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/__init__.py +0 -0
  370. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/output/__init__.py +0 -0
  371. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/output/example_output_1.out +0 -0
  372. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/output/json_time_series.pickle +0 -0
  373. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/solver/__init__.py +0 -0
  374. {openswmm-5.3.0.dev0 → openswmm-6.0.0.dev0}/tests/data/solver/site_drainage_example.inp +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "WebFetch(domain:raw.githubusercontent.com)"
5
+ ]
6
+ }
7
+ }
@@ -0,0 +1,181 @@
1
+ # ============================================================================
2
+ # CMake entry point for the openswmm Python package (scikit-build-core)
3
+ #
4
+ # Invoked by `pip install .`, `pip install -e .`, or `python -m build`.
5
+ # Responsibilities:
6
+ # 1. Resolve the OpenSWMM engine (pre-built CI or from-source local dev).
7
+ # 2. Find Python, locate Cython, and discover NumPy include paths.
8
+ # 3. Include cmake/CythonHelpers.cmake (shared directives + helpers).
9
+ # 4. Delegate extension builds to openswmm/CMakeLists.txt.
10
+ # ============================================================================
11
+
12
+ cmake_minimum_required(VERSION 3.24)
13
+
14
+ # ============================================================================
15
+ # vcpkg manifest directory: the vcpkg.json lives one directory above python/.
16
+ # Set VCPKG_MANIFEST_DIR before project() so vcpkg's toolchain file sees it.
17
+ # Users who install without vcpkg (e.g. system-lib builds) can ignore this.
18
+ # ============================================================================
19
+ if(NOT DEFINED CACHE{VCPKG_MANIFEST_DIR})
20
+ set(VCPKG_MANIFEST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/.."
21
+ CACHE PATH "Directory containing vcpkg.json" FORCE)
22
+ endif()
23
+
24
+ # Auto-load vcpkg toolchain when VCPKG_ROOT is set in the environment.
25
+ # Must be done before project() so the toolchain is processed at language
26
+ # enable time. Users can override by passing -DCMAKE_TOOLCHAIN_FILE=...
27
+ # on the command line or via CMAKE_ARGS / SKBUILD_CMAKE_ARGS.
28
+ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE AND DEFINED ENV{VCPKG_ROOT})
29
+ set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
30
+ CACHE PATH "vcpkg toolchain file (auto-detected from VCPKG_ROOT)")
31
+ message(STATUS "openswmm-python: auto-loaded vcpkg toolchain from $ENV{VCPKG_ROOT}")
32
+ endif()
33
+
34
+ project(
35
+ openswmm-python
36
+ VERSION 6.0.0
37
+ LANGUAGES C CXX
38
+ )
39
+
40
+ # ============================================================================
41
+ # 1. Engine library: find_package (CI pre-built) OR add_subdirectory (local)
42
+ # ============================================================================
43
+ if(NOT DEFINED OPENSWMM_ENGINE_INSTALL_PREFIX
44
+ AND DEFINED ENV{OPENSWMM_ENGINE_INSTALL_PREFIX})
45
+ set(OPENSWMM_ENGINE_INSTALL_PREFIX "$ENV{OPENSWMM_ENGINE_INSTALL_PREFIX}"
46
+ CACHE PATH "Install prefix of a pre-built OpenSWMM engine")
47
+ endif()
48
+
49
+ if(OPENSWMM_ENGINE_INSTALL_PREFIX)
50
+ message(STATUS "openswmm-python: using pre-built engine from ${OPENSWMM_ENGINE_INSTALL_PREFIX}")
51
+ set(OPENSWMM_USE_PREBUILT_ENGINE TRUE CACHE BOOL "" FORCE)
52
+
53
+ find_package(OpenSWMMEngine CONFIG REQUIRED
54
+ PATHS "${OPENSWMM_ENGINE_INSTALL_PREFIX}"
55
+ NO_DEFAULT_PATH
56
+ )
57
+
58
+ # Provide openswmm:: ALIAS names consumed by all sub-CMakeLists.
59
+ add_library(openswmm::engine ALIAS OpenSWMMEngine::openswmm_engine)
60
+ add_library(openswmm::legacy::engine ALIAS OpenSWMMEngine::openswmm_legacy_engine)
61
+ add_library(openswmm::legacy::output ALIAS OpenSWMMEngine::openswmm_legacy_output)
62
+ add_library(openswmm::common ALIAS OpenSWMMEngine::openswmm_common)
63
+ add_library(openswmm::plugin_sdk ALIAS OpenSWMMEngine::openswmm_plugin_sdk)
64
+
65
+ if(NOT DEFINED LIBRARY_VERSION)
66
+ set(LIBRARY_VERSION "${PROJECT_VERSION}")
67
+ set(LIBRARY_SOVERSION "${PROJECT_VERSION_MAJOR}")
68
+ endif()
69
+
70
+ else()
71
+ message(STATUS "openswmm-python: building engine from source")
72
+ set(OPENSWMM_USE_PREBUILT_ENGINE FALSE CACHE BOOL "" FORCE)
73
+
74
+ set(OPENSWMM_BUILD_TESTS OFF CACHE BOOL "" FORCE)
75
+ set(OPENSWMM_BUILD_UNIT_TESTS OFF CACHE BOOL "" FORCE)
76
+ set(OPENSWMM_BUILD_REGRESSION_TESTS OFF CACHE BOOL "" FORCE)
77
+ set(OPENSWMM_BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE)
78
+ set(OPENSWMM_BUILD_PYTHON OFF CACHE BOOL "" FORCE)
79
+
80
+ # Disable WINDOWS_EXPORT_ALL_SYMBOLS: the cmake -E __create_def step
81
+ # cannot parse /GL (LTCG) object files on Windows CI.
82
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)
83
+
84
+ add_subdirectory(
85
+ "${CMAKE_CURRENT_SOURCE_DIR}/.."
86
+ "${CMAKE_BINARY_DIR}/parent_build"
87
+ EXCLUDE_FROM_ALL
88
+ )
89
+ endif()
90
+
91
+ # ============================================================================
92
+ # 2. Global settings
93
+ # ============================================================================
94
+ set(CMAKE_MACOSX_RPATH ON)
95
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
96
+ set(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE)
97
+ include(InstallRequiredSystemLibraries)
98
+
99
+ # ============================================================================
100
+ # 2a. OpenMP — use the same custom FindOpenMP.cmake as the parent project.
101
+ #
102
+ # In source mode the parent's src/engine/CMakeLists.txt already includes it,
103
+ # so the OpenMP::OpenMP_C/CXX targets exist when we reach here.
104
+ # In pre-built mode the parent is skipped, so we must ensure the targets exist
105
+ # ourselves before any Cython extension is linked.
106
+ # ============================================================================
107
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
108
+ if(NOT TARGET OpenMP::OpenMP_CXX)
109
+ include("${CMAKE_CURRENT_SOURCE_DIR}/../cmake/FindOpenMP.cmake")
110
+ endif()
111
+
112
+ # ============================================================================
113
+ # 3. Python (standard CMake FindPython — scikit-build-core populates hints)
114
+ # ============================================================================
115
+ find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
116
+ message(STATUS "Python executable : ${Python_EXECUTABLE}")
117
+ message(STATUS "Python version : ${Python_VERSION}")
118
+
119
+ # ============================================================================
120
+ # 4. Cython driver — invoked as `python -m cython` so the cython that runs
121
+ # is ALWAYS the one installed in the active interpreter. Calling a
122
+ # `cython` binary discovered on PATH is a footgun: the binary may shebang
123
+ # a different interpreter (e.g. a system / conda Python), in which case
124
+ # `cimport numpy` resolves to that interpreter's numpy/*.cython-3?.pxd
125
+ # instead of the venv's, producing ABI mismatches at compile time
126
+ # (e.g. _PyArray_Descr.subarray on numpy 2.x).
127
+ # ============================================================================
128
+ execute_process(
129
+ COMMAND "${Python_EXECUTABLE}" -c "import Cython, sys; sys.stdout.write(Cython.__version__)"
130
+ OUTPUT_VARIABLE _cython_version
131
+ RESULT_VARIABLE _cython_check_rc
132
+ OUTPUT_STRIP_TRAILING_WHITESPACE
133
+ )
134
+ if(NOT _cython_check_rc EQUAL 0)
135
+ message(FATAL_ERROR
136
+ "Cython is not importable from the active Python (${Python_EXECUTABLE}).\n"
137
+ "Install it with: ${Python_EXECUTABLE} -m pip install 'cython>=3.0.12'")
138
+ endif()
139
+ # OPENSWMM_CYTHON_EXECUTABLE is treated as a list so add_custom_command's
140
+ # COMMAND expansion runs `<python> -m cython ...`.
141
+ set(OPENSWMM_CYTHON_EXECUTABLE "${Python_EXECUTABLE};-m;cython"
142
+ CACHE STRING "Cython driver (python -m cython) for the active interpreter" FORCE)
143
+ message(STATUS "Cython driver : ${Python_EXECUTABLE} -m cython (Cython ${_cython_version})")
144
+
145
+ # ============================================================================
146
+ # 5. NumPy include directory + pxd patch
147
+ #
148
+ # numpy.get_include() returns the C headers used by the .cxx compiler.
149
+ # Separately, numpy ships Cython declaration files (numpy/__init__.cython-30.pxd
150
+ # etc.) that have a known incompatibility with numpy 2.x — see
151
+ # cmake/PatchNumpyPxd.cmake for the full story. We materialise patched
152
+ # copies into the build tree and prepend them to Cython's --include-dir so
153
+ # our extensions compile against numpy 2.x without modifying the user's
154
+ # numpy install.
155
+ # ============================================================================
156
+ execute_process(
157
+ COMMAND "${Python_EXECUTABLE}" -c "import numpy; print(numpy.get_include())"
158
+ OUTPUT_VARIABLE NUMPY_INCLUDE_DIR
159
+ OUTPUT_STRIP_TRAILING_WHITESPACE
160
+ RESULT_VARIABLE _numpy_rc
161
+ )
162
+ if(NOT _numpy_rc EQUAL 0)
163
+ message(FATAL_ERROR "Could not determine NumPy include directory")
164
+ endif()
165
+ message(STATUS "NumPy include dir : ${NUMPY_INCLUDE_DIR}")
166
+ set(NUMPY_INCLUDE_DIR "${NUMPY_INCLUDE_DIR}" CACHE PATH "" FORCE)
167
+
168
+ include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/PatchNumpyPxd.cmake")
169
+ openswmm_patch_numpy_pxd()
170
+ set(OPENSWMM_NUMPY_PATCHED_INCLUDE_DIR
171
+ "${OPENSWMM_NUMPY_PATCHED_INCLUDE_DIR}" CACHE PATH "" FORCE)
172
+
173
+ # ============================================================================
174
+ # 6. Cython helper functions (shared directives + add_cython_extension)
175
+ # ============================================================================
176
+ include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/CythonHelpers.cmake")
177
+
178
+ # ============================================================================
179
+ # 7. Cython extensions
180
+ # ============================================================================
181
+ add_subdirectory(openswmm)
@@ -0,0 +1,163 @@
1
+ {
2
+ "version": 3,
3
+ "configurePresets": [
4
+ {
5
+ "name": "base",
6
+ "hidden": true,
7
+ "generator": "Ninja",
8
+ "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
9
+ "cacheVariables": {
10
+ "CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
11
+ }
12
+ },
13
+ {
14
+ "name": "base-debug",
15
+ "hidden": true,
16
+ "inherits": "base",
17
+ "cacheVariables": {
18
+ "CMAKE_BUILD_TYPE": "Debug"
19
+ }
20
+ },
21
+ {
22
+ "name": "Windows",
23
+ "inherits": "base",
24
+ "description": "Windows release build",
25
+ "generator": "Visual Studio 17 2022",
26
+ "toolset": {
27
+ "value": "v143",
28
+ "strategy": "external"
29
+ },
30
+ "cacheVariables": {
31
+ "CMAKE_BUILD_TYPE": "Release",
32
+ "CMAKE_C_FLAGS": "/O2 /GL /fp:precise /W4",
33
+ "CMAKE_CXX_FLAGS": "/O2 /GL /fp:precise /W4",
34
+ "CMAKE_EXE_LINKER_FLAGS": "/LTCG /OPT:REF /OPT:ICF",
35
+ "CMAKE_SHARED_LINKER_FLAGS": "/LTCG /OPT:REF /OPT:ICF",
36
+ "CMAKE_MODULE_LINKER_FLAGS": "/LTCG /OPT:REF /OPT:ICF",
37
+ "CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS": "OFF"
38
+ },
39
+ "condition": {
40
+ "type": "equals",
41
+ "lhs": "${hostSystemName}",
42
+ "rhs": "Windows"
43
+ }
44
+ },
45
+ {
46
+ "name": "Windows-debug",
47
+ "inherits": "base-debug",
48
+ "description": "Windows debug build",
49
+ "generator": "Visual Studio 17 2022",
50
+ "toolset": {
51
+ "value": "v143",
52
+ "strategy": "external"
53
+ },
54
+ "cacheVariables": {
55
+ "CMAKE_C_FLAGS": "/Zi /Od /DDEBUG /W4 /fp:precise",
56
+ "CMAKE_CXX_FLAGS": "/Zi /Od /DDEBUG /W4 /fp:precise",
57
+ "CMAKE_EXE_LINKER_FLAGS": "/DEBUG"
58
+ },
59
+ "condition": {
60
+ "type": "equals",
61
+ "lhs": "${hostSystemName}",
62
+ "rhs": "Windows"
63
+ }
64
+ },
65
+ {
66
+ "name": "Linux",
67
+ "inherits": "base",
68
+ "description": "Linux release build",
69
+ "cacheVariables": {
70
+ "CMAKE_BUILD_TYPE": "Release",
71
+ "CMAKE_C_FLAGS": "-O2 -fdata-sections -ffunction-sections -fno-fast-math -ffp-contract=off -fexcess-precision=standard -ffloat-store -Wall -Wextra",
72
+ "CMAKE_CXX_FLAGS": "-O2 -fdata-sections -ffunction-sections -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
73
+ "CMAKE_EXE_LINKER_FLAGS": "-Wl,--gc-sections",
74
+ "CMAKE_SHARED_LINKER_FLAGS": "-Wl,--gc-sections",
75
+ "CMAKE_MODULE_LINKER_FLAGS": ""
76
+ },
77
+ "condition": {
78
+ "type": "equals",
79
+ "lhs": "${hostSystemName}",
80
+ "rhs": "Linux"
81
+ }
82
+ },
83
+ {
84
+ "name": "Linux-debug",
85
+ "inherits": "base-debug",
86
+ "description": "Linux debug build",
87
+ "cacheVariables": {
88
+ "CMAKE_C_FLAGS": "-O0 -g -DDEBUG -fno-fast-math -ffp-contract=off -fexcess-precision=standard -ffloat-store -Wall -Wextra",
89
+ "CMAKE_CXX_FLAGS": "-O0 -g -DDEBUG -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
90
+ "CMAKE_EXE_LINKER_FLAGS": "-g"
91
+ },
92
+ "condition": {
93
+ "type": "equals",
94
+ "lhs": "${hostSystemName}",
95
+ "rhs": "Linux"
96
+ }
97
+ },
98
+ {
99
+ "name": "Darwin",
100
+ "inherits": "base",
101
+ "description": "macOS release build",
102
+ "cacheVariables": {
103
+ "CMAKE_BUILD_TYPE": "Release",
104
+ "CMAKE_C_FLAGS": "-O2 -flto -fdata-sections -ffunction-sections -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
105
+ "CMAKE_CXX_FLAGS": "-O2 -flto -fdata-sections -ffunction-sections -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
106
+ "CMAKE_EXE_LINKER_FLAGS": "-flto",
107
+ "CMAKE_SHARED_LINKER_FLAGS": "-flto -twolevel_namespace -undefined dynamic_lookup",
108
+ "CMAKE_MODULE_LINKER_FLAGS": "-flto -undefined dynamic_lookup"
109
+ },
110
+ "condition": {
111
+ "type": "equals",
112
+ "lhs": "${hostSystemName}",
113
+ "rhs": "Darwin"
114
+ }
115
+ },
116
+ {
117
+ "name": "Darwin-debug",
118
+ "inherits": "base-debug",
119
+ "description": "macOS debug build",
120
+ "cacheVariables": {
121
+ "CMAKE_C_FLAGS": "-O0 -g -DDEBUG -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
122
+ "CMAKE_CXX_FLAGS": "-O0 -g -DDEBUG -fno-fast-math -ffp-contract=off -ffloat-store -Wall -Wextra",
123
+ "CMAKE_EXE_LINKER_FLAGS": "-g",
124
+ "CMAKE_SHARED_LINKER_FLAGS": "-twolevel_namespace -undefined dynamic_lookup",
125
+ "CMAKE_MODULE_LINKER_FLAGS": "-undefined dynamic_lookup"
126
+ },
127
+ "condition": {
128
+ "type": "equals",
129
+ "lhs": "${hostSystemName}",
130
+ "rhs": "Darwin"
131
+ }
132
+ }
133
+ ],
134
+ "buildPresets": [
135
+ {
136
+ "name": "Windows",
137
+ "configurePreset": "Windows",
138
+ "targets": ["package"]
139
+ },
140
+ {
141
+ "name": "Windows-debug",
142
+ "configurePreset": "Windows-debug"
143
+ },
144
+ {
145
+ "name": "Linux",
146
+ "configurePreset": "Linux",
147
+ "targets": ["package"]
148
+ },
149
+ {
150
+ "name": "Linux-debug",
151
+ "configurePreset": "Linux-debug"
152
+ },
153
+ {
154
+ "name": "Darwin",
155
+ "configurePreset": "Darwin",
156
+ "targets": ["package"]
157
+ },
158
+ {
159
+ "name": "Darwin-debug",
160
+ "configurePreset": "Darwin-debug"
161
+ }
162
+ ]
163
+ }
@@ -1,12 +1,9 @@
1
- Copyright 2026 HydroCouple
1
+ MIT License
2
+
3
+ Copyright 2026 Caleb Buahin
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
6
 
5
7
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
8
 
7
9
  THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
-
9
- This project contains original material has been released as part of various USEPA SWMM software over the years. These reside in the
10
- public domain and cannot be claimed. This project also contains new material prepared by the United States
11
- Government for which domestic copyright protection is not available under 17
12
- USC § 105.