pleiades.utils.config module
Global configuration management for PLEIADES.
- class pleiades.utils.config.PleiadesConfig(nuclear_data_cache_dir: Path = <factory>, nuclear_data_sources: Dict[str, str]=<factory>)[source]
Bases:
objectGlobal configuration for PLEIADES.
- save(path: Path | None = None) Path[source]
Save configuration to a YAML file.
- Parameters:
path – Path to save configuration file. If None, uses default location.
- Returns:
Path to the saved configuration file.
- classmethod load(path: Path | None = None) PleiadesConfig[source]
Load configuration from a YAML file.
- Parameters:
path – Path to load configuration file. If None, uses default location.
- Returns:
Loaded configuration object.
- pleiades.utils.config.get_config() PleiadesConfig[source]
Get the global configuration instance.
- pleiades.utils.config.set_config(config: PleiadesConfig) None[source]
Set the global configuration instance.