epanetReader
epanetReader copied to clipboard
Parsing .inp files that do not end with [END]
Calling read.inp()
on an inp file that does not have [END] at the end fails with the rather cryptic error:
Error in rg[1]:rg[2] : NA/NaN argument
The error arises from an internal function of the package that extracts individual sections of the inp file. That function expects an [END] at the end of the file as in the common examples.
Thanks to Nina for the bug report.