pyradtran.config.load_config

Contents

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):

  1. Package defaults (config/clean_simulation.yaml).

  2. User master config (~/.pyradtran/config.yaml).

  3. 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:

SimulationConfig

Raises: