mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
#2003 Observed Data : Improve detection of scientific number
This commit is contained in:
parent
c8e5fb7513
commit
b022492bc1
@ -290,7 +290,7 @@ bool RifEclipseUserDataParserTools::hasOnlyValidDoubleValues(const std::vector<s
|
||||
|
||||
for (const auto& word : words)
|
||||
{
|
||||
if (word.find_first_not_of("0123456789.eE-") != std::string::npos)
|
||||
if (word.find_first_not_of("0123456789.eE-+") != std::string::npos)
|
||||
{
|
||||
onlyValidValues = false;
|
||||
}
|
||||
@ -352,8 +352,7 @@ TableData RifEclipseUserDataParserTools::tableDataFromText(std::stringstream& st
|
||||
{
|
||||
if (!streamData.good())
|
||||
{
|
||||
if (errorText) errorText->push_back("Failed to detect start of table header");
|
||||
|
||||
// End of file
|
||||
return emptyTable;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user