-
Notifications
You must be signed in to change notification settings - Fork 206
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
Opening/parsing an uncompleted INP file with the Toolkit #746
Comments
This is a relevant issue that was only partly addressed by issue #579 and PR #580. The
Again, each of these conditions would be flagged with a message added to the Status Report. Did I miss anything? |
Thanks @LRossman for the answer and comments. Sorry I didn’t see previous issues related to the same topic. I sometimes encounter another case where an error can occur : when a custom section (enclosed in brackets) is present in the INP file with a keyword not allowed in EPANET (that can occur when I receive an INP file created by a third-party software creating a special section in its INP file format to store additional data). Example : imagine that you have additional data added to pumps inside an [ADP] section inserted just after the [PUMP] section in the INP file.
Of course the extra-sections can be manually deleted but it is easier if the ENopen function could directly manage the issue. Thanks. |
I often need to open a INP text file including one or more “errors” (for example : models under construction with uncompleted data).
I don’t believe that there are available parsing functions in the Toolkit to read INP files with errors. My question : is it not possible to let the ENopen function returning a warning code in place of an error code, letting the user access data even if they are not completed/fully correct?
Thank you for your opinion and advices.
The text was updated successfully, but these errors were encountered: