runtraj.execution.worker.run_stages#
- runtraj.execution.worker.run_stages(sims, particles=None, *, remade=False, skip_existing=True)[source]#
Run the stages of the simulations of one release that share particles, and return what failed.
Each variant’s stages run in the order
runtraj.config.Variant.stage_ordergives, a stage after the ones it reads. A stage file that exists is kept, unless something it is made from was made again in this call: the particles (remade), or the file of a stage it reads. Then the old file is removed before the stage runs, so one that fails leaves none. Variants with equal settings of a stage, and of what it reads, share its file, so it is made once. A failure is recorded with the simulation, and the stages that read the failed one are left for the next run.- Parameters:
sims (
list[Simulation]) – One release under each variant that shares its particles, as one realization.particles (
DataFrame|None) – The particles, when they are in memory. Without them a stage reads the stored ones, once for all the simulations.remade (
bool) – Whether the particles were just made, so every stage file is made again.skip_existing (
bool) – Keep the stage files that already exist.
- Returns:
One line per failure.
- Return type: