runtraj.models.TransportConfig#
- class runtraj.models.TransportConfig(*, n_hours: int, seed: int | None = None) None[source]#
The base of every transport model’s config.
It holds the parameters runtraj’s own code reads, whatever the model: the run length and the seed, which set the run window and the realizations. Everything else, the particle count included, is the model’s own. A model’s config subclasses it with its own parameters and is the model’s
config_class. Inconfig.yamlthe parameters are the keys of the model’s block undermodels:, and a variant that runs the model may override any of them. A subclass overridessettings()orrealizations()only where its model differs.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Length of each simulation, in hours. Negative runs backward in time. It has no default: a config must say it. |
Required |
|
Seed of the model’s random numbers, for a reproducible run. Realization |
|
Attributes#
Fields that change no particle, such as where the build is, left out of a run's recorded settings. |
Methods#
|
Return n realizations of this config, realization |
|
Return what a run records of this config: every field but the |