mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#2659 Ensemble statistics. Fix plot editor issues
This commit is contained in:
parent
54ed12a2f7
commit
7cd371c1f8
@ -40,6 +40,7 @@ namespace caf
|
||||
addItem(RifEclipseSummaryAddress::SUMMARY_BLOCK_LGR, "SUMMARY_BLOCK_LGR", "Lgr-Block");
|
||||
addItem(RifEclipseSummaryAddress::SUMMARY_CALCULATED, "SUMMARY_CALCULATED", "Calculated");
|
||||
addItem(RifEclipseSummaryAddress::SUMMARY_IMPORTED, "SUMMARY_IMPORTED", "Imported");
|
||||
addItem(RifEclipseSummaryAddress::SUMMARY_ENSEMBLE_STATISTICS, "SUMMARY_ENSEMBLE_STATISTICS", "Ensemble Statistics");
|
||||
setDefault(RifEclipseSummaryAddress::SUMMARY_FIELD);
|
||||
}
|
||||
|
||||
|
@ -426,6 +426,9 @@ void RiuSummaryCurveDefSelection::setSelectedCurveDefinitions(const std::vector<
|
||||
summaryAddress = RifEclipseSummaryAddress::fieldAddress(summaryAddress.quantityName());
|
||||
}
|
||||
|
||||
// Ignore ensemble statistics curves
|
||||
if (summaryAddress.category() == RifEclipseSummaryAddress::SUMMARY_ENSEMBLE_STATISTICS) continue;
|
||||
|
||||
// Select summary category if not already selected
|
||||
auto& selectedCategories = m_selectedSummaryCategories();
|
||||
|
||||
@ -605,6 +608,8 @@ QList<caf::PdmOptionItemInfo> RiuSummaryCurveDefSelection::calculateValueOptions
|
||||
{
|
||||
for (size_t i = 0; i < caf::AppEnum<RifEclipseSummaryAddress::SummaryVarCategory>::size(); ++i)
|
||||
{
|
||||
if (caf::AppEnum<RifEclipseSummaryAddress::SummaryVarCategory>::fromIndex(i) == RifEclipseSummaryAddress::SUMMARY_ENSEMBLE_STATISTICS) continue;
|
||||
|
||||
options.push_back(caf::PdmOptionItemInfo(caf::AppEnum<RifEclipseSummaryAddress::SummaryVarCategory>::uiTextFromIndex(i),
|
||||
caf::AppEnum<RifEclipseSummaryAddress::SummaryVarCategory>::fromIndex(i)));
|
||||
}
|
||||
@ -1040,7 +1045,8 @@ std::set<RifEclipseSummaryAddress> RiuSummaryCurveDefSelection::buildAddressList
|
||||
std::set<RifEclipseSummaryAddress> addressSet;
|
||||
for (const auto& category : m_selectedSummaryCategories())
|
||||
{
|
||||
if (category == RifEclipseSummaryAddress::SummaryVarCategory::SUMMARY_INVALID) continue;
|
||||
if (m_identifierFieldsMap.at(category).size() == 0 ||
|
||||
category == RifEclipseSummaryAddress::SummaryVarCategory::SUMMARY_INVALID) continue;
|
||||
|
||||
const auto& identifierAndFieldList = m_identifierFieldsMap.at(category);
|
||||
std::vector<std::pair<RifEclipseSummaryAddress::SummaryIdentifierType, QString>> selectionStack;
|
||||
|
Loading…
Reference in New Issue
Block a user