mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Cleanup names of scripted classes in Python
Avoid Rim prefix and use keyword alias to ensure backwards compability
This commit is contained in:
parent
e4d84675c5
commit
915745c389
@ -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" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -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" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimFractureTemplateCollection, "FractureDefinitionCollection" );
|
||||
CAF_PDM_SOURCE_INIT( RimFractureTemplateCollection, "FractureTemplateCollection", "FractureDefinitionCollection" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
static std::vector<double> EMPTY_DOUBLE_VECTOR;
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimStimPlanFractureTemplate, "RimStimPlanFractureTemplate" );
|
||||
CAF_PDM_SOURCE_INIT( RimStimPlanFractureTemplate, "StimPlanFractureTemplate", "RimStimPlanFractureTemplate" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -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" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -76,7 +76,7 @@
|
||||
///
|
||||
//==================================================================================================
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimWellLogExtractionCurve, "RimWellLogExtractionCurve" );
|
||||
CAF_PDM_SOURCE_INIT( RimWellLogExtractionCurve, "WellLogExtractionCurve", "RimWellLogExtractionCurve" );
|
||||
|
||||
namespace caf
|
||||
{
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user