Skip to content

Commit

Permalink
#11148: Set default name to Accumulated Flow Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 1, 2024
1 parent 1b15886 commit 04d0ec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotNameConfig.h"
#include "RimWellLogTrack.h"
#include "RimWellPlotTools.h"

Expand Down Expand Up @@ -130,6 +131,9 @@ RimWellAllocationPlot::RimWellAllocationPlot()
RiaDefines::DepthTypeEnum::PSEUDO_LENGTH } );

m_accumulatedWellFlowPlot->setCommonDataSourceEnabled( false );
m_accumulatedWellFlowPlot->nameConfig()->setCustomName( "Accumulated Flow Chart" );
m_accumulatedWellFlowPlot->setNamingMethod( RiaDefines::ObjectNamingMethod::CUSTOM );
m_accumulatedWellFlowPlot->updateAutoName();

m_showWindow = false;
setDeletable( true );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ std::vector<double> RigWellLogCurveData::depthValuesByIntervals( RiaDefines::Dep
RiaDefines::DepthUnitType destinationDepthUnit ) const
{
const std::vector<double> depthValues = RigWellLogCurveData::depthsForDepthUnit( depths( depthType ), m_depthUnit, destinationDepthUnit );
if ( depthValues.empty() ) return depthValues;

std::vector<double> filteredValues;
RiaCurveDataTools::getValuesByIntervals( depthValues, m_intervalsOfContinousValidValues, &filteredValues );
Expand Down

0 comments on commit 04d0ec7

Please sign in to comment.