epanetReader icon indicating copy to clipboard operation
epanetReader copied to clipboard

Parsing .inp files that do not end with [END]

Open bradleyjeck opened this issue 4 years ago • 0 comments

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.

bradleyjeck avatar Nov 03 '20 21:11 bradleyjeck