runtraj.Project.simulation#
- Project.simulation(release_id, variant, realization=None)[source]#
Return one simulation: a release under a variant, and a realization of an ensemble.
A simulation is a value built from its release, its variant, and the output directory, so it is cheap. It knows where its results are and loads them.
- Raises:
KeyError – If the project has no such release or variant.
ValueError – If realization is not one the variant runs as:
0toN - 1forrealizations: N,Noneotherwise.
- Return type:
- Parameters: