DataHolder
A container for holding computation results.
Usage
DataHolder()Parameters
name: str-
The name of the data holder.
Examples
>>> dh = DataHolder("results")
>>> dh.get_data()
{}Methods
| Name | Description |
|---|---|
| __init__() | Initialize the DataHolder. |
| get_data() | Return the stored data. |
__init__()
Initialize the DataHolder.
Usage
__init__(name)Parameters
name: str-
The name of the data holder.
get_data()
Return the stored data.
Usage
get_data()Returns
dict-
The stored data dictionary.
Examples
>>> dh = DataHolder("test")
>>> dh.get_data()
{}