Janitor: Cleanup names of scripted classes in Python

Avoid Rim prefix and use keyword alias to ensure backwards compability
This commit is contained in:
Magne Sjaastad 2021-10-25 11:38:25 +02:00
parent e4d84675c5
commit 915745c389
8 changed files with 7 additions and 13 deletions

View File

@ -32,7 +32,7 @@
#include "cafPdmObjectScriptingCapability.h"
#include "cvfStructGridGeometryGenerator.h"
CAF_PDM_SOURCE_INIT( RimCellFilterCollection, "RimCellFilterCollection", "CellRangeFilterCollection" );
CAF_PDM_SOURCE_INIT( RimCellFilterCollection, "CellFilterCollection", "RimCellFilterCollection", "CellRangeFilterCollection" );
//--------------------------------------------------------------------------------------------------
///

View File

@ -103,7 +103,7 @@ void caf::AppEnum<RimFractureTemplate::BetaFactorEnum>::setUp()
#define CAF_PDM_InitField_Basic( field, keyword, default, uiName ) \
CAF_PDM_InitField( field, keyword, default, uiName, "", "", "" )
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimFractureTemplate, "RimFractureTemplate" );
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimFractureTemplate, "FractureTemplate", "RimFractureTemplate" );
//--------------------------------------------------------------------------------------------------
///

View File

@ -45,7 +45,7 @@
#include <map>
CAF_PDM_SOURCE_INIT( RimFractureTemplateCollection, "FractureDefinitionCollection" );
CAF_PDM_SOURCE_INIT( RimFractureTemplateCollection, "FractureTemplateCollection", "FractureDefinitionCollection" );
//--------------------------------------------------------------------------------------------------
///

View File

@ -64,7 +64,7 @@
static std::vector<double> EMPTY_DOUBLE_VECTOR;
CAF_PDM_SOURCE_INIT( RimStimPlanFractureTemplate, "RimStimPlanFractureTemplate" );
CAF_PDM_SOURCE_INIT( RimStimPlanFractureTemplate, "StimPlanFractureTemplate", "RimStimPlanFractureTemplate" );
//--------------------------------------------------------------------------------------------------
///

View File

@ -28,9 +28,6 @@
#include <QFileInfo>
// TODO: Use the alias concept prototyped below when the alias concept for class is ready
// CAF_PDM_SOURCE_INIT( RimEnsembleStatisticsSurface, "EnsembleStatisticsSurface", "Surface" );
// CAF_PDM_SOURCE_INIT( <class> , <keyword> , <alias>);
CAF_PDM_SOURCE_INIT( RimEnsembleStatisticsSurface, "EnsembleStatisticsSurface" );
//--------------------------------------------------------------------------------------------------

View File

@ -31,10 +31,7 @@
#include <QFileInfo>
// TODO: Use the alias concept prototyped below when the alias concept for class is ready
// CAF_PDM_SOURCE_INIT( RimFileSurface, "FileSurface", "Surface" );
// CAF_PDM_SOURCE_INIT( <class> , <keyword> , <alias>);
CAF_PDM_SOURCE_INIT( RimFileSurface, "Surface" );
CAF_PDM_SOURCE_INIT( RimFileSurface, "Surface", "FileSurface" );
//--------------------------------------------------------------------------------------------------
///

View File

@ -76,7 +76,7 @@
///
//==================================================================================================
CAF_PDM_SOURCE_INIT( RimWellLogExtractionCurve, "RimWellLogExtractionCurve" );
CAF_PDM_SOURCE_INIT( RimWellLogExtractionCurve, "WellLogExtractionCurve", "RimWellLogExtractionCurve" );
namespace caf
{

View File

@ -18,7 +18,7 @@ cases = resinsight.project.cases()
case = cases[0]
# Create stim plan template
fmt_collection = project.descendants(rips.FractureDefinitionCollection)[0]
fmt_collection = project.descendants(rips.FractureTemplateCollection)[0]
fracture_template = fmt_collection.append_fracture_template(
file_path=stim_plan_file_path
)