runtraj.config.Variant#
- class runtraj.config.Variant(name: 'str', met: 'str', met_config: 'Any', transport: 'TransportConfig', model: 'str', realizations: 'int | None' = None, stages: 'dict[str, Any]'=<factory>, stage_classes: 'dict[str, str]'=<factory>) None[source]#
One variant, resolved: its configs, its met, its transport model, and its hashes.
Get one from
project.variantsorsim.variant. A variant withrealizations: Nis an ensemble: its simulations run N times, realizationkwithseed + k(transport_for()), and its results share one folder, arealization=kpartition each.Variants with equal
result_hashshare one run of the transport model per release (and realization) and differ only in what their stages make of it. The hashes are computed once. Change a variant withdataclasses.replace(), which computes them again.
Attributes#
The transport model build that runs it. |
|
What a run records of the met, its config's |
|
The settings that identify this variant's particles, without what cannot be read here. |
|
The realizations its simulations run as, from |
|
The type of result the variant's transport model makes, such as |
|
Hash of |
|
The settings that identify this variant's particles, as |
|
The hash that finds each stage's settings folder, by the stage's name. |
|
The names of the variant's stages in the order they run, each after the stages it reads. |
|
The settings that identify each stage's results, by the stage's name, as its |
Methods#
|
Return the stage called name, one of |
|
Return the hash of each stage's settings folder for a result hashed result_hash. |
|
Return the transport config realization realization runs with. |