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()
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
projectProject — The project.simulation_configurationstr — The simulation configuration.misfit_configurationstr — The misfit configuration.event_nameslist[str] — The event names.sitesdict[str, TaskChainSiteConfig] — The sites’ configuration for running things.wavefield_compressionWavefieldCompression — Wavefield compression settings.timerTimer | None — Execution timer.
Returns ResultCollection
compute_misfits_from_project()
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
projectProject — The project.simulation_configurationstr — The simulation configuration.misfit_configurationstr — The misfit configuration.event_nameslist[str] — The event names.sitesdict[str, TaskChainSiteConfig] — The sites’ configuration for running things.timerTimer | None — Execution timer.
Returns ResultCollection
run_simulations_from_project()
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
projectProject — The project.simulation_configurationstr — The simulation configuration.event_nameslist[str] — The event names.sitesdict[str, TaskChainSiteConfig] — The sites’ configuration for running things.timerTimer | None — Execution timer.
Returns ResultCollection