◆ __init__()
def python.physvalPostProcessingTools.ConfigManager.__init__ |
( |
|
self | ) |
|
◆ add_configuration()
def 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}")
◆ get_all_configs()
def 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()
◆ get_config()
def 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, {})
◆ configs
python.physvalPostProcessingTools.ConfigManager.configs |
The documentation for this class was generated from the following file: