-
Notifications
You must be signed in to change notification settings - Fork 134
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
add getters for pollutant surface buildup and ponded concentration in subcatchments #170
Conversation
not yet functional (returns values that aren't right)
add buildup and concPonded properties to subcatchments
use double pointer for pollut array
@katmratliff, I think it would be wise for us to track the git commit number in conjunction with the version of swmm we are packaging with pyswmm inside the For example: __version__ = '.'.join(map(str, VERSION_INFO))
__swmm_version__ = '5.2.0.dev3'
__swmm_sha__ = "awer89q34rnoiaerer"
__author__ = 'Bryant E. McDonnell (EmNet LLC) - [email protected]' |
@bemcdonnell great idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@katmratliff it seems there is a 'passing pointer to pointer into DLL' problem from line 1139 to line 1142. Can you show me an example of the wrong values? I can help test it in my side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi: it seems there is a 'passing pointer to pointer into DLL' problem from line 1139 to line 1142. Can you show me an example of the wrong values?
@katmratliff it seems there is a 'passing pointer to pointer into DLL' problem from line 1139 to line 1142. Can you show me an example of the wrong values? I can help to test it in my side |
Hi @Jiadalee, I assume you are talking about ll. 1139-1142 in swmm5.py? I'm not sure I understand what you mean by "can you show me an example of the wrong values?" This code has worked for me on windows and in linux, so more specific information about your problem would be helpful. Here is an example of how to access buildup and ponded concentration values: Note that you need to pass the specific pollutant name to return a numerical value. |
Hi @katmratliff , no. I mean in this linkfile. It says'not yet functional (returns values that aren't right)' |
@Jiadalee you are looking at one commit when things were not fully functional yet - they should be now (or have been for me) with the most up-to-date version in my branch. |
@katmratliff Gotta! So this problem has been fixed and test_pollutant.py is based on the this PR? |
@katmratliff Cool. Thanks. I starred your repo |
@bemcdonnell remind me what needs to be tested/done here to pull this in? |
@katmratliff, I think it's good. Maybe I forgot about it :( |
Thanks @bemcdonnell! 🎉 |
Merge pull request pyswmm#170 from katmratliff/master
buildup
andconcPonded
pollutant_buildup
from subcatchment statisticstests_pollutants.py