runtraj.ProjectConfig.to_yaml#

ProjectConfig.to_yaml(path=None)[source]#

Return the config as YAML, and write it to path when given.

The file is meant to be edited by hand, so it holds only the settings that were given, in each block. mets, models, stages and variants come first. The full settings of each variant are in the output directory, in the _settings.yaml of each settings= folder.

Return type:

str

Parameters:

path (str | Path | None)