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