mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Exclude some statistics results from category classification
Avoid FIPOIL_MEAN and similar as a category result.
This commit is contained in:
parent
9b150ca38a
commit
7486f20e98
@ -102,9 +102,10 @@ bool RiaResultNames::isFlowResultWithBothPosAndNegValues( const QString& resultN
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaResultNames::isCategoryResult( const QString& resultName )
|
||||
{
|
||||
static std::set<QString> excludedResultNames = { "FIPOIL", "FIPGAS", "FIPWAT" };
|
||||
|
||||
if ( excludedResultNames.find( resultName.toUpper() ) != excludedResultNames.end() ) return false;
|
||||
// Check for special FIP* results. This will also match statistics results FIPOIL_MEAN, FIPOIL_P90, ...
|
||||
if ( resultName.startsWith( "FIPOIL", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.startsWith( "FIPGAS", Qt::CaseInsensitive ) ) return false;
|
||||
if ( resultName.startsWith( "FIPWAT", Qt::CaseInsensitive ) ) return false;
|
||||
|
||||
if ( resultName.endsWith( "NUM", Qt::CaseInsensitive ) ) return true;
|
||||
if ( resultName.startsWith( "FIP", Qt::CaseInsensitive ) ) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user