creators¶
creators
assists with initializing all modules.
Class¶
ConfigHandler¶
- class gedml.launcher.creators.config_handler.ConfigHandler(convert_dict={}, link_path=None, assert_path=None, params_path=None, wrapper_path=None, is_confirm_first=True)[source]¶
Bases:
object
This class takes charge of reading yaml files, combining config parameters, modifying local parameters and initializing modules.
ConfigHandler
will callCreatorManager
to use corresponding sub-creator to do the initialization respectly.- Parameters
link_path (str) – Path where the
link.yaml
is stored.params_path (str) – Path where the params configs are stored.
assert_path (str) – Path where the
assert.yaml
is stored. (To be done!)is_confirm_first (bool) – Whether to confirm before starting initialization. default: True.
Example
>>> config_handler = ConfigHandler() >>> config_handler.get_params_dict() >>> objects_dict = config_handler.create_all()
- create_all(change_dict={})[source]¶
Initialize all modules according to params dictionary.
- Parameters
change_dict (dict) – Dictionary that overwrites certain parameters. (optional)
- Returns
initialized objects dictionary.
- Return type
dict