setup class#
- class pycif.utils.classes.setup.Setup(plg_orig=None, orig_name='', **kwargs)[source]#
Bases:
Plugin
- classmethod load_setup(plg, parent_plg_type=None, level=999, tree='', list_levels=None, ignore_parent_type=False, **kwargs)[source]#
Loads a Setup plugin. Loops recursively over all attributes of the setup to load: 1) sub-plugins are initialized as Plugin child-class templates ( Domain, ObsVect, Model, etc); 2) instances are saved to the Plugin class to be accessible for anywhere later one.
This allows modifications of the data of a given plugin at some place of the code to be automatically forwarded to the rest of the code
- Args:
self (Setup): the setup to load parent_plg_type (str): the last recognized plugin type that is inherited by children