runtraj.ProjectConfig.resolve#

ProjectConfig.resolve(directory=None)[source]#

Return one Variant per declared variant, in declared order.

Each variant’s transport settings are validated by its model’s config class, as are its realizations (realizations: N runs it N times, realization k with seed + k). Each met’s directories are made absolute; what a run records of the met is read on first use (Variant.met_settings). Each stage resolves the settings a variant gives it (runtraj.stages.Stage.resolve()): it reads the files they name and checks that they fit the variant’s model. The transport model’s build is read on first use too (Variant.build). project.variants holds the result.

Parameters:

directory (str | Path | None) – Where a relative geometry file or met directory starts: the project directory. Without it, the working directory.

Raises:

ValueError – If a variant’s transport settings are invalid for its model, its realizations would repeat one another, a stage’s settings do not fit the variant’s model, or the variant has a stage and its model makes a type of result the stage does not read.

Return type:

dict[str, Variant]