pyradtran.config.load_config#
- pyradtran.config.load_config(config_path: str | Path | None = None) SimulationConfig[source]#
Load and merge the three-layer configuration.
Resolution order (later wins):
Package defaults (
config/clean_simulation.yaml).User master config (
~/.pyradtran/config.yaml).config_path (the simulation-specific YAML).
- Parameters:
config_path (str or pathlib.Path, optional) – Simulation-specific YAML. When None, only layers 1 + 2 are used.
- Return type:
- Raises:
FileNotFoundError – If config_path is given but does not exist.
ConfigurationError – If the merged dictionary cannot be converted to
SimulationConfig.