-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pollutant treatment enhancements. #92
Comments
I think this would also require updating the solver submodule to the latest develop branch of SWMM. @michaeltryby, does that sound alright to you? I'd like to help here because I also have a minor addition to fix subcatchment P_EVAP_RATE. However, I'm not so familiar with your improved treatment routines, so it might take me a while to put together a complete pull request. |
Hi @karosc, we already made the pollutant changes to SWMM. See this pull request for more details: pyswmm/Stormwater-Management-Model#326. From my understanding after talking with @abhiramm7, the changes in that pull request were the only changes needed in SWMM to enable this functionality and now we need to make the changes to swmm-python, but I could be mistaken. |
You are correct, your additions are present in the develop branch of SWMM. However, for swmm-python links to SWMM as a git submodule, pointing to a specific commit in the SWMM git tree. The current submodule points to a commit in history that predates your commits. So not only will you need to made changes to the shared_enum.py and test_solver.py files, but you will also need to update the submodule to point to the latest development branch of SWMM. @michaeltryby mentioned updating this library with SWMM 5.1.14 in an earlier issue, but I'm not sure where that stands. If you make your python changes, update the submodule, and all tests pass, you should be good. |
@michaeltryby, I tried to update the swmm-solver to the lastest commit in the develop branch of SWMM, but I think swig is not liking the changes you made here When I try to compile swmm-python using the latest SWMM branch, I get the following CMAKE error:
I am too green to monkey around with the swig interface files without direction, thoughts on where the issue lies? |
Hey @karosc, sorry about being incommunicado. Are you getting the error when you build locally? What system / compiler are you using? |
I was able to resolve the issue last night by defining EXPORT_TOOLKIT in the swig interface file. See #94, which I just now created. |
Addressed in #94 |
We made modifications to SWMM to allow more flexibility and options when running pollutant treatment and generation processes. Before we can modify pyswmm to enable this functionality, we need to modify swmm-python. This includes adding CIN, REACTORC, and HRT to shared_enum.py and then the tests for these additions in test_solver.py.
The text was updated successfully, but these errors were encountered: