stilt.Model.run#

Model.run(executor=None, skip_existing=True, wait=True)[source]#

Run every simulation that has not finished.

Saves the settings and receptors to the project (register()), then starts workers for each receptor with missing outputs. A worker runs HYSPLIT for each of the receptor’s variants that lacks a trajectory, then calculates the footprint where the variant has a grid.

Parameters:
  • executor (Executor | None) – Where to run the workers. Defaults to the one set by config.execution (local processes unless configured).

  • skip_existing (bool) – Skip simulations whose outputs all exist. False runs every simulation again.

  • wait (bool) – Block until the workers finish. With False a Slurm or Kubernetes run returns once it is submitted. A local run always finishes before this returns.

Returns:

Handle to the started workers.

Return type:

JobHandle

Raises:
  • ConfigChangedError – If a variant that already ran now has different settings.

  • ConfigValidationError – If Slurm execution is requested for a cloud project.