You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was using the python version of OWA-EPANET, I found all functions do not retrieve the integer values of warnings, as it's stated in "README". You know it's hard to check these basically identical warnings. Could there be any methods to analyses the warning throws?
The text was updated successfully, but these errors were encountered:
... so EPANET has returned a non-zero (but less than 10) code, which indicates a warning. Our SWIG wrapper is inspecting the code and issuing the warning, so we could either:
format the numerical code into the warning string,
increase the stack_level parameter to give the user more insight into the wrapped function that generated the warning,
create a custom warning class that would contain the EPANET integer code as an instance variable
Any of these options would be a pretty minor tweak to the wrapper, but I list them here in case others have better ideas...
When I was using the python version of OWA-EPANET, I found all functions do not retrieve the integer values of warnings, as it's stated in "README". You know it's hard to check these basically identical warnings. Could there be any methods to analyses the warning throws?
The text was updated successfully, but these errors were encountered: