Handles error result addresses for statistics curves

Changes in the summary system has introduced a bug causing two identical results to be displayed, the correct statistical vector and the error. If error is asked for, return no values.
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-07-22 14:07:06 +02:00
1 parent 4e94169b63
commit ef74e781e9
1 file changed
+2
@@ -73,6 +73,8 @@ bool RimEnsembleStatisticsCase::hasMeanData() const
//--------------------------------------------------------------------------------------------------
std::pair<bool, std::vector<double>> RimEnsembleStatisticsCase::values( const RifEclipseSummaryAddress& resultAddress ) const
{
if ( resultAddress.isErrorResult() ) return std::make_pair(false, std::vector<double>{});
switch ( resultAddress.statisticsType() )
{
case RifEclipseSummaryAddressDefines::StatisticsType::P10: