self.myStudy = Study
def set(self, variableName, variable):
+ """
+ Create (or modify) variable with name "variableName"
+ and value equal "theValue".
+ """
if type(variable) == float:
self.myStudy.SetReal(variableName, variable)
self.myStudy.SetBoolean(variableName, variable)
def get(self, variableName):
+ """
+ Return value of the variable with name "variableName".
+ """
aResult = None
if self.myStudy.IsVariable(variableName):
return aResult
- def isVariable(self, variableName):
+ def isVariable(self, variableName):
+ """
+ Return true if variable with name "variableName"
+ exists in the study, otherwise return false.
+ """
return self.myStudy.IsVariable(variableName)
-notebook = NoteBook(salome.myStudy)
+notebook = NoteBook(salome.myStudy)
\ No newline at end of file