stilt.execution.worker.run_particles#
- stilt.execution.worker.run_particles(sim, *, workdir, keep_workdir=False, timeout=None)[source]#
Run the transport model for a simulation and write its particles to the output directory.
The transport model the variant names runs in workdir (
stilt.transport.run_model()), with the variant’s met. Its log is written to the output directory whether the run succeeds or fails. The working directory is then removed, unless the run failed or keep_workdir is set, in which case it is copied under the output directory’sscratch/first.- Parameters:
- Returns:
The particles, also written to the output directory.
- Return type:
- Raises:
SimulationError – As the transport model raises it (with a
reason), or withreasonNO_PARTICLE_DATAwhen the model wrote no particles.MeteorologyErrorwhen the met files are missing.