![]() |
OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
|
Abstract parent class for data management. More...
Public Member Functions | |
def | ReInit (self) |
Abstract method that computes the value of the parameters with respect of the arguments. More... | |
def | SaveData (self, f) |
Function that lists in the command window and saves in a opened file text "f" the data from the "self" class that calls it. More... | |
def | ShowInfo (self) |
Abstract method that shows the data stored in the class in the command window. More... | |
def | UpdateStoredData (self) |
Abstract method used to define and update the self.data member variable. More... | |
Abstract parent class for data management.
Using the associated MATLAB class
LOAD_CLASS.m
for the postprocessing in MATLAB, allowing for simpler and more reliable data management because the parameters from the OpenSeesPy analysis are imported automatically.
Definition at line 11 of file DataManagement.py.
def ReInit | ( | self | ) |
Abstract method that computes the value of the parameters with respect of the arguments.
Use after changing the value of argument inside the class (to update the values accordingly).
This function can be very useful in combination with the function "deepcopy()" from the module "copy".
Be careful that the parameter self.Initialized is also copied, thus it is safer to copy the class before the method that calls the actual OpenSees commands (and initialise the object).
Definition at line 56 of file DataManagement.py.
def SaveData | ( | self, | |
f | |||
) |
Function that lists in the command window and saves in a opened file text "f" the data from the "self" class that calls it.
Example: call this function after this line:
with open(FileName, 'w') as f:
f | (io.TextIOWrapper): Opened file to write into |
WrongDimension | The number of lists in the list self.data needs to be 2 |
Definition at line 20 of file DataManagement.py.
def ShowInfo | ( | self | ) |
Abstract method that shows the data stored in the class in the command window.
In some cases, it's possible to plot some information (for example the curve of the material model).
Definition at line 48 of file DataManagement.py.
def UpdateStoredData | ( | self | ) |
Abstract method used to define and update the self.data member variable.
This member variable (self.data) is a list of lists with 2 entries (info_name and info_value) and for each list is stored a different member variable of the class.
Useful to debug the model, export data, copy object.
Definition at line 66 of file DataManagement.py.