engforge.properties.system_property
- class system_property(fget=None, fset=None, fdel=None, doc=None, desc=None, label=None, stochastic=False)[source]
Bases:
engforge_propthis property notifies the system this is a property to be tabulated in the dataframe output.
@system_property def function(…): < this uses __init__ to assign function
@system_property(desc=’really nice’,label=’funky function’) def function(…): < this uses __call__ to assign function
When the underlying data has some random element, set stochastic=True and this will flag the component to always save data.
Functions wrapped with table type must have an return annotion of (int,float,str)… ex def func() -> int:
You can initalize just the functions, or precreate the object but with meta @system_property def function(…): < this uses __init__ to assign function
@system_property(desc=’really nice’,label=’funky function’) def function(…): < this uses __call__ to assign function
Methods
deleterensures that the function has a return annotation, and that return annotation is in valid sort types
gettersetterAttributes
desclabelmust_returnreturn_typestochasticvalid_types