Refactor: Move updateChannelsFromWellLogData to base class RimWellLog

This commit is contained in:
Kristian Bendiksen committed 2025-09-04 09:04:56 +02:00
1 parent 160cb71168
commit 9326da7965
6 files changed
+24 -37

No files matched your search

@@ -142,15 +142,7 @@ bool RimWellLogLasFile::readFile( QString* errorMessage )
m_date = DEFAULT_DATE_TIME;
}
m_wellLogChannels.deleteChildren();
QStringList wellLogNames = m_wellLogDataFile->wellLogChannelNames();
for ( int logIdx = 0; logIdx < wellLogNames.size(); logIdx++ )
{
RimWellLogChannel* wellLog = new RimWellLogChannel();
wellLog->setName( wellLogNames[logIdx] );
m_wellLogChannels.push_back( wellLog );
}
updateChannelsFromWellLogData( m_wellLogDataFile.p() );
auto fileWellPath = firstAncestorOrThisOfType<RimFileWellPath>();
if ( fileWellPath )