Mondaic

salvus.project.tools.task_chains.prebuilt_workflows.prebuilt_workflows

salvus.project.tools.task_chains.prebuilt_workflows.prebuilt_workflows salvus project tools task_chains prebuilt_workflows prebuilt_workflows

Compute misfits and gradients for certain special cases.

Functions

compute_misfits_and_gradients_from_project()

def compute_misfits_and_gradients_from_project(
    project: Project,
    simulation_configuration: str,
    misfit_configuration: str,
    event_names: list[str],
    sites: dict[str, TaskChainSiteConfig],
    wavefield_compression: WavefieldCompression,
    timer: Timer | None = None,
) -> ResultCollection: ...

Compute misfits and gradients for a given Salvus project using distributed task chains.

As of now this only works for projects satisfying the following list of constraints:

  • The project and the Salvus run directory must reside on a shared file system that the process launching the task chain and all compute nodes have access to.
  • Events must be specified using an event block file.
Parameters
  • project Project — The project.
  • simulation_configuration str — The simulation configuration.
  • misfit_configuration str — The misfit configuration.
  • event_names list[str] — The event names.
  • sites dict[str, TaskChainSiteConfig] — The sites’ configuration for running things.
  • wavefield_compression WavefieldCompression — Wavefield compression settings.
  • timer Timer | None — Execution timer.
Returns ResultCollection

compute_misfits_from_project()

def compute_misfits_from_project(
    project: Project,
    simulation_configuration: str,
    misfit_configuration: str,
    event_names: list[str],
    sites: dict[str, TaskChainSiteConfig],
    timer: Timer | None = None,
) -> ResultCollection: ...

Compute misfits for a given Salvus project using distributed task chains.

As of now this only works for projects satisfying the following list of constraints:

  • The project and the Salvus run directory must reside on a shared file system that the process launching the task chain and all compute nodes have access to.
Parameters
  • project Project — The project.
  • simulation_configuration str — The simulation configuration.
  • misfit_configuration str — The misfit configuration.
  • event_names list[str] — The event names.
  • sites dict[str, TaskChainSiteConfig] — The sites’ configuration for running things.
  • timer Timer | None — Execution timer.
Returns ResultCollection

run_simulations_from_project()

def run_simulations_from_project(
    project: Project,
    simulation_configuration: str,
    event_names: list[str],
    sites: dict[str, TaskChainSiteConfig],
    timer: Timer | None = None,
) -> ResultCollection: ...

Run simulations for a given Salvus project using distributed task chains.

As of now this only works for projects satisfying the following constraint(s):

  • The project and the Salvus run directory must reside on a shared file system that the process launching the task chain and all compute nodes have access to.
Parameters
  • project Project — The project.
  • simulation_configuration str — The simulation configuration.
  • event_names list[str] — The event names.
  • sites dict[str, TaskChainSiteConfig] — The sites’ configuration for running things.
  • timer Timer | None — Execution timer.
Returns ResultCollection