OpenWaterAnalytics / epanet-python

python wrapper for epanet library
76 stars 40 forks source link

The wrapper do not allow observing negative pressure results #84

Closed aferust closed 2 years ago

aferust commented 2 years ago

Negative pressures are a good indicator for detecting unsatisfying demands. I can only get negative pressures if I comment out this line.

https://github.com/OpenWaterAnalytics/epanet-python/blob/dev/epanet-module/epamodule.py#L596

The code causing the error. pressure = em.ENgetnodevalue(nodeindex, em.EN_PRESSURE)

aferust commented 2 years ago

Probably i just catch the error