hpcflow.sdk.config.config_file.ConfigFile#
- class hpcflow.sdk.config.config_file.ConfigFile(directory, logger, config_options)#
Bases:
object
Configuration file.
Methods
Add a new default config to the config file, and create the file if it doesn't exist.
Change the config key of the loaded config.
Select a matching configuration for this invocation using run-time info.
Modify the invocation parameters of the loaded config.
- add_default_config(config_options, name=None)#
Add a new default config to the config file, and create the file if it doesn’t exist.
- Return type:
- static get_config_file_path(directory)#
- get_config_item(config_key, name, raise_on_missing=False, default_value=None)#
- get_invoc_data(config_key)#
- get_invocation(config_key)#
- is_item_set(config_key, name)#
- rename_config_key(config_key, new_config_key)#
Change the config key of the loaded config.
- save()#
- static select_invocation(configs, run_time_info, path, config_key=None)#
Select a matching configuration for this invocation using run-time info.