pyradtran.config.SimulationConfig.to_yaml

pyradtran.config.SimulationConfig.to_yaml#

SimulationConfig.to_yaml(path: str | Path) Path[source]#

Write the configuration to a YAML file.

Parameters:

path (str or pathlib.Path) – Destination file. Parent directories are created automatically.

Returns:

The resolved path to the written file.

Return type:

pathlib.Path

Examples

Build a config dict in Python, load it, then persist it:

>>> cfg = load_config()
>>> cfg.to_yaml("config/my_simulation.yaml")