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.

GetFileNames()

Files name accessor.

GetInstances()

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 Add(study)

Add a study in the tree view.

Parameters
objectStudy

The study to add

static GetAvailableName(rootName)

Available name for a study accessor.

Returns
namestr

Available name for a study

static GetFileNames()

Files name accessor.

Returns
filesNamesopenturns.Description

The file names of all the opened studies

static GetInstances()

Studies accessor.

Returns
studiessequence of Study

Studies existing in the tree view

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
studyStudy

The study saved in fileName

static Remove(study)

Remove a study from the tree view.

Parameters
objectStudy

The study to remove

add(self, *args)

Add an object to the study.

Parameters
objectPhysicalModel, LimitState, Analysis

The object to add

getAnalyses(self)

Analysis accessor.

Returns
analysessequence of Analysis

Analyses

getAnalysisByName(self, analysisName)

Analysis accessor.

Parameters
namestr

The analysis name

Returns
analysisAnalysis

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
modelDataModel

Data model

getDataModels(self)

Data model accessor.

Returns
modelssequence of DataModel

Data models

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

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
modelPhysicalModel

Physical model

getPhysicalModels(self)

Physical models accessor.

Returns
modelssequence of PhysicalModel

Physical models

getPythonScript(self)

Python script accessor.

Returns
scriptstr

The Python script

remove(self, *args)

Remove an object from the study.

Parameters
objectPhysicalModel, LimitState, Analysis

The object to remove

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.