pyyeti.cla.DR_Def.addcat¶
- static DR_Def.addcat(func)[source]¶
Decorator to ensure
add()is called to add category.Notes
Example of typical usage:
@cla.DR_Def.addcat def _(): name = 'SC_atm' desc = 'S/C Internal Accelerations' units = 'G' drms = {name: sc_atm} drfunc = f"Vars[se]['{name}'] @ sol.a" # ... other variables defined; see :func:`add`. drdefs.add(**locals())