◆ __init__()
| python.physvalPostProcessingTools.ConfigManager.__init__ |
( |
| self | ) |
|
◆ add_configuration()
| python.physvalPostProcessingTools.ConfigManager.add_configuration |
( |
| self, |
|
|
| name, |
|
|
| config_file ) |
Definition at line 51 of file physvalPostProcessingTools.py.
51 def add_configuration(self, name, config_file):
52 with open(config_file, "r") as f:
53 config_data = yaml.safe_load(f)
54 self.configs[name] = config_data
55 logging.info(f"Configuration for '{name}' loaded from {config_file}")
56
◆ get_all_configs()
| python.physvalPostProcessingTools.ConfigManager.get_all_configs |
( |
| self | ) |
|
Returns all configs as (name, config) pairs
Definition at line 61 of file physvalPostProcessingTools.py.
61 def get_all_configs(self):
62 """Returns all configs as (name, config) pairs"""
63 return self.configs.items()
64
◆ get_config()
| python.physvalPostProcessingTools.ConfigManager.get_config |
( |
| self, |
|
|
| name ) |
Returns the config for a specific domain (e.g., 'Electron')
Definition at line 57 of file physvalPostProcessingTools.py.
57 def get_config(self, name):
58 """Returns the config for a specific domain (e.g., 'Electron')"""
59 return self.configs.
get(name, {})
60
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
◆ configs
| dict python.physvalPostProcessingTools.ConfigManager.configs = {} |
The documentation for this class was generated from the following file: