runtraj.stages.Stage.resolve#
- Stage.resolve(config, model, model_settings, directory)[source]#
Return the config a variant’s simulations run with, from the one
config.yamlgives.Called once for each variant when a project reads its variants. This is where the stage reads the files its settings name, and where it refuses a transport model whose particles it cannot use.
- Parameters:
config (
Any) – The variant’s settings of this stage, checked.model (
str) – The variant’s transport model, as itsmodelsblock names it.model_settings (
Mapping[str,Any]) – The model’s settings as a run records them.directory (
Path|None) – The project directory, where a relative file name starts.
- Raises:
ValueError – If the settings do not fit the model, or name a file that cannot be used.
- Return type: