mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3087 Show plot data. Do not display tabs when only ascii data curves exist. Bugfixes
This commit is contained in:
@@ -511,6 +511,14 @@ void RimSummaryPlot::updatePlotInfoLabel()
|
||||
showPlotInfoLabel(anyCurveSetFiltered);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSummaryPlot::containsResamplableCurves() const
|
||||
{
|
||||
return !m_gridTimeHistoryCurves.empty() || !summaryAndEnsembleCurves().empty();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1739,6 +1747,9 @@ void prepareCaseCurvesForExport(DateTimePeriod period, ResampleAlgorithm algorit
|
||||
|
||||
if (period != DateTimePeriod::NONE)
|
||||
{
|
||||
// Prepare result data
|
||||
resultCurvesData->resamplePeriod = period;
|
||||
|
||||
for (size_t i = 0; i < inputCurvesData.caseNames.size(); i++)
|
||||
{
|
||||
// Shortcuts to input data
|
||||
@@ -1747,8 +1758,6 @@ void prepareCaseCurvesForExport(DateTimePeriod period, ResampleAlgorithm algorit
|
||||
auto& caseCurveData = inputCurvesData.allCurveData[i];
|
||||
|
||||
// Prepare result data
|
||||
resultCurvesData->resamplePeriod = period;
|
||||
//resultCurvesData->resampleAlgorithm = algorithm;
|
||||
resultCurvesData->caseNames.push_back(caseName);
|
||||
resultCurvesData->allCurveData.push_back(std::vector<CurveData>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user