Skip to content

Commit

Permalink
#4636 Curve Data Export : Use correct column header for P10/P90
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Aug 27, 2019
1 parent 7b9e667 commit 1f90323
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ApplicationCode/ProjectDataModel/Summary/RimSummaryCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "RiaDefines.h"
#include "RiaGuiApplication.h"
#include "RiaPreferences.h"
#include "RiaStatisticsTools.h"
#include "RiaTimeHistoryCurveMerger.h"

#include "RifReaderEclipseSummary.h"
Expand Down Expand Up @@ -781,17 +782,24 @@ QString RimSummaryCurve::curveExportDescription(const RifEclipseSummaryAddress&
auto curveSet = coll ? coll->findRimCurveSetFromQwtCurve(m_qwtPlotCurve) : nullptr;
auto group = curveSet ? curveSet->summaryCaseCollection() : nullptr;

auto addressUiText = addr.uiText();
if (addr.category() == RifEclipseSummaryAddress::SUMMARY_ENSEMBLE_STATISTICS)
{
addressUiText = RiaStatisticsTools::replacePercentileByPValueText(QString::fromStdString(addressUiText)).toStdString();

}

if (group && group->isEnsemble())
{
return QString("%1.%2.%3")
.arg(QString::fromStdString(addr.uiText()))
.arg(QString::fromStdString(addressUiText))
.arg(m_yValuesSummaryCase->caseName())
.arg(group->name());
}
else
{
return QString("%1.%2")
.arg(QString::fromStdString(addr.uiText()))
.arg(QString::fromStdString(addressUiText))
.arg(m_yValuesSummaryCase->caseName());
}
}
Expand Down

0 comments on commit 1f90323

Please sign in to comment.