Study¶
-
class
persalys.
Study
(*args)¶ Create the class to store a study.
Methods
Add
(study)Add a study in the tree view.
GetAvailableName
(rootName)Available name for a study accessor.
Files name accessor.
Studies accessor.
HasInstanceNamed
(studyName)Whether the tree view contains a study named with the given name.
Open
(xmlFileName)Open a study.
Remove
(study)Remove a study from the tree view.
add
(self, *args)Add an object to the study.
getAnalyses
(self)Analysis accessor.
getAnalysisByName
(self, analysisName)Analysis accessor.
getAvailableAnalysisName
(self, rootName)Available name for an analysis accessor.
getAvailableDataModelName
(self, modelRootName)Available name for a data model accessor.
getAvailableLimitStateName
(self, rootName)Available name for a limit state accessor.
getAvailablePhysicalModelName
(self, …)Available name for a physical model accessor.
getClassName
(self)Accessor to the object’s name.
getDataModelByName
(self, dataModelName)Data model accessor.
getDataModels
(self)Data model accessor.
getFileName
(self)File name accessor.
getId
(self)Accessor to the object’s id.
getImplementation
(self)Accessor to the underlying implementation.
getLimitStates
(self)Limit state accessor.
getName
(self)Accessor to the object’s name.
getPhysicalModelByName
(self, physicalModelName)Physical model accessor.
getPhysicalModels
(self)Physical models accessor.
getPythonScript
(self)Python script accessor.
remove
(self, *args)Remove an object from the study.
save
(self, xmlFileName)Save it in an xml file.
setName
(self, name)Accessor to the object’s name.
GetClassName
-
__init__
(self, *args)¶ Initialize self. See help(type(self)) for accurate signature.
-
static
GetAvailableName
(rootName)¶ Available name for a study accessor.
- Returns
- namestr
Available name for a study
-
static
GetFileNames
()¶ Files name accessor.
- Returns
- filesNames
openturns.Description
The file names of all the opened studies
- filesNames
-
static
GetInstances
()¶ Studies accessor.
- Returns
- studiessequence of
Study
Studies existing in the tree view
- studiessequence of
-
static
HasInstanceNamed
(studyName)¶ Whether the tree view contains a study named with the given name.
- Parameters
- namestr
A study name
- Returns
- containsbool
Whether it contains a study named with the given name
-
static
Open
(xmlFileName)¶ Open a study.
- Parameters
- fileNamestr
The file name
- Returns
- study
Study
The study saved in fileName
- study
-
add
(self, *args)¶ Add an object to the study.
- Parameters
- object
PhysicalModel
,LimitState
,Analysis
… The object to add
- object
-
getAnalyses
(self)¶ Analysis accessor.
- Returns
- analysessequence of
Analysis
Analyses
- analysessequence of
-
getAnalysisByName
(self, analysisName)¶ Analysis accessor.
- Parameters
- namestr
The analysis name
- Returns
- analysis
Analysis
Analysis
- analysis
-
getAvailableAnalysisName
(self, rootName)¶ Available name for an analysis accessor.
- Returns
- namestr
Available name for an analysis
-
getAvailableDataModelName
(self, modelRootName)¶ Available name for a data model accessor.
- Returns
- namestr
Available name for a data model
-
getAvailableLimitStateName
(self, rootName)¶ Available name for a limit state accessor.
- Returns
- namestr
Available name for a limit state
-
getAvailablePhysicalModelName
(self, physicalModelRootName)¶ Available name for a physical model accessor.
- Returns
- namestr
Available name for a physical model
-
getClassName
(self)¶ Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
-
getDataModelByName
(self, dataModelName)¶ Data model accessor.
- Parameters
- namestr
The data model name
- Returns
- model
DataModel
Data model
- model
-
getFileName
(self)¶ File name accessor.
- Returns
- fileNamestr
The file name
-
getId
(self)¶ Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
-
getImplementation
(self)¶ Accessor to the underlying implementation.
- Returns
- implImplementation
The implementation class.
-
getLimitStates
(self)¶ Limit state accessor.
- Returns
- statessequence of
LimitState
Limit states
- statessequence of
-
getName
(self)¶ Accessor to the object’s name.
- Returns
- namestr
The name of the object.
-
getPhysicalModelByName
(self, physicalModelName)¶ Physical model accessor.
- Parameters
- namestr
The model name
- Returns
- model
PhysicalModel
Physical model
- model
-
getPhysicalModels
(self)¶ Physical models accessor.
- Returns
- modelssequence of
PhysicalModel
Physical models
- modelssequence of
-
getPythonScript
(self)¶ Python script accessor.
- Returns
- scriptstr
The Python script
-
remove
(self, *args)¶ Remove an object from the study.
- Parameters
- object
PhysicalModel
,LimitState
,Analysis
… The object to remove
- object
-
save
(self, xmlFileName)¶ Save it in an xml file.
- Parameters
- fileNamestr
The file name
-
setName
(self, name)¶ Accessor to the object’s name.
- Parameters
- namestr
The name of the object.
-