mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#14828: Do not create a view when creating a grid from the Python API
Previously a view was created and ACTNUM displayed when running with GUI. Users can create a view explicitly through the API. Fixes #14828.
This commit is contained in:
1 parent
f015af98ee
commit
1cfe49262a
2 files changed
+16
-19
No files matched your search
@@ -28,7 +28,6 @@
|
||||
#include "RiaPreferencesGrid.h"
|
||||
#include "RiaQStringFormatter.h"
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
#include "RiaResultNames.h"
|
||||
|
||||
#include "ExportCommands/RicSnapshotAllPlotsToFileFeature.h"
|
||||
#include "ExportCommands/RicSnapshotAllViewsToFileFeature.h"
|
||||
@@ -46,8 +45,6 @@
|
||||
#include "RimCase.h"
|
||||
#include "RimCornerPointCase.h"
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RimEclipseCellColors.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimFileSummaryCase.h"
|
||||
#include "RimGeneric3dView.h"
|
||||
#include "RimGenericViewCollection.h"
|
||||
@@ -324,22 +321,7 @@ std::expected<caf::PdmObjectHandle*, QString> RimProject_createGridFromKeyValues
|
||||
|
||||
RimMainPlotCollection::current()->ensureDefaultFlowPlotsAreCreated();
|
||||
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
if ( RimEclipseView* riv = grid->createAndAddReservoirView() )
|
||||
{
|
||||
riv->loadDataAndUpdate();
|
||||
|
||||
if ( !riv->cellResult()->hasResult() )
|
||||
{
|
||||
riv->cellResult()->setResultVariable( RiaResultNames::undefinedResultName() );
|
||||
}
|
||||
|
||||
analysisModels->updateConnectedEditors();
|
||||
|
||||
if ( RiuMainWindow::instance() ) RiuMainWindow::instance()->selectAsCurrentItem( riv->cellResult() );
|
||||
}
|
||||
}
|
||||
analysisModels->updateConnectedEditors();
|
||||
|
||||
keyValueStore->remove( m_coordKey().toStdString() );
|
||||
keyValueStore->remove( m_zcornKey().toStdString() );
|
||||
|
||||
Reference in new issue
Block a user