runtraj.stages.Stage#

class runtraj.stages.Stage(*args, **kwargs)[source]#

What is made from each simulation’s results: one file per release.

A class with these members is a stage; it subclasses nothing. It is made with no arguments, and holds no state: everything a stage needs is in its config and the simulation it is handed.

Methods#

check(config, releases, directory)

Return what would stop this stage for the project's releases, found without running anything.

resolve(config, model, model_settings, directory)

Return the config a variant's simulations run with, from the one config.yaml gives.

run(config, sim, path)

Make the stage's file for one simulation, and write it at path.

settings(config)

Return what identifies the stage's results, besides what it reads: the record of its settings folder.