Skip to content
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

RuntimeError: Hydraulic_metrics #98

Closed
jeongsoo0908 opened this issue Jul 18, 2019 · 1 comment
Closed

RuntimeError: Hydraulic_metrics #98

jeongsoo0908 opened this issue Jul 18, 2019 · 1 comment

Comments

@jeongsoo0908
Copy link

Hello. I want to inquire about error while studying WNTR Simulator.
An error occurs during the calculation of 'Compute water service availability, for each operation' in the hydraulics.

Warning (from warnings module):
File "C:\Users\syste\AppData\Local\Programs\Python\Python36\lib\site-packages\wntr\sim\hydraulics.py", line 713
last_segment = (-0.5)j_d/(nomP-minP)((P-minP)/(nomP-minP))**(-0.5)
RuntimeWarning: divide by zero encountered in power

Warning (from warnings module):
File "C:\Users\syste\AppData\Local\Programs\Python\Python36\lib\site-packages\wntr\sim\hydraulics.py", line 713
last_segment = (-0.5)j_d/(nomP-minP)((P-minP)/(nomP-minP))**(-0.5)
RuntimeWarning: invalid value encountered in multiply

I hope you will let me know the solution to this.
Thank you.

@michaelbynum
Copy link
Contributor

michaelbynum commented Jul 22, 2019

This is actually not a problem. These warnings come from numpy. They are expected, but difficult to suppress. We are working on a refactor of the hydraulics model that should be available in a few weeks. One of the benefits of the refactor is that these warnings will not be encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants