OpenWaterAnalytics / epanet-python

python wrapper for epanet library
76 stars 40 forks source link

API to access headloss model code #43

Closed jbaayen closed 5 years ago

jbaayen commented 5 years ago

Currently, there appears to be no way to access the headloss model code using the API. Such API would be useful to help correctly interpret the roughness values after having read an input file.

michaeltryby commented 5 years ago

@jbaayen anlys_getoption(handle, en.Option.HEADLOSSFORM) - returns the headloss formula being used as an integer.

I have not figured out how to have the SWIG wrapper return an Enum in Python. Any suggestions?