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. In config.yaml the parameters are the keys of the model’s block under models:, and a variant that runs the model may override any of them. A subclass overrides settings() or realizations() only where its model differs.

Parameters#

Parameter

Description

Default

n_hours

Length of each simulation, in hours. Negative runs backward in time. It has no default: a config must say it.

Required

seed

Seed of the model’s random numbers, for a reproducible run. Realization k of a variant runs with seed + k.

None

Attributes#

UNRECORDED

Fields that change no particle, such as where the build is, left out of a run's recorded settings.

Methods#

realizations(n)

Return n realizations of this config, realization k with seed + k.

settings()

Return what a run records of this config: every field but the UNRECORDED ones.