runtraj.models.TransportModel.run#
- TransportModel.run(release, config, met, window, workdir=None, timeout=None)[source]#
Run one release and return its particles.
The particles are the model’s own: runtraj checks them and adds the release heights, and
footwhen the model wrote none, afterwards (run_model()).- Parameters:
release (runtraj.releases.Release) – Where and when particles are released.
config (
Any) – The model’s config, of itsconfig_class.met (
Any) – The meteorology, of the model’smet_config_class. In a project its directories are absolute.window (
tuple[datetime,datetime]) – The time the run covers,(start, end)in time order (runtraj.meteorology.run_window()).workdir (
Path|None) – An empty directory for the run’s files, kept when the run fails.Nonefor a model that needs one to make its own.timeout (
int|None) – Time limit in seconds, for a model that runs a program.Nonewaits indefinitely.
- Raises:
SimulationError – When the run fails, with the model’s log in
log.- Return type: