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: salvus.project.project.Project,
simulation_configuration: str,
misfit_configuration: str,
event_names: List[str],
sites: Dict[
str,
salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig,
],
wavefield_compression: salvus.flow.collections.wavefield_compression.WavefieldCompression,
) -> (
salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.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
projectsalvus.project.project.Project — The project.simulation_configurationstr — The simulation configuration.misfit_configurationstr — The misfit configuration.event_namesList[str] — The event names.sitesDict[str, salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig] — The sites’ configuration for running things.wavefield_compressionsalvus.flow.collections.wavefield_compression.WavefieldCompression — Wavefield compression settings.
Returns salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.ResultCollection
compute_misfits_from_project()
compute_misfits_from_project()def compute_misfits_from_project(
project: salvus.project.project.Project,
simulation_configuration: str,
misfit_configuration: str,
event_names: List[str],
sites: Dict[
str,
salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig,
],
) -> (
salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.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
projectsalvus.project.project.Project — The project.simulation_configurationstr — The simulation configuration.misfit_configurationstr — The misfit configuration.event_namesList[str] — The event names.sitesDict[str, salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig] — The sites’ configuration for running things.
Returns salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.ResultCollection
compute_waveforms_from_project()
compute_waveforms_from_project()def compute_waveforms_from_project(
project: salvus.project.project.Project,
simulation_configuration: str,
event_names: List[str],
sites: Dict[
str,
salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig,
],
) -> (
salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.ResultCollection
): ...Compute waveforms 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
projectsalvus.project.project.Project — The project.simulation_configurationstr — The simulation configuration.event_namesList[str] — The event names.sitesDict[str, salvus.flow.executors.task_chain.task_chain_site_config.TaskChainSiteConfig] — The sites’ configuration for running things.
Returns salvus.project.tools.task_chains.prebuilt_workflows.results.result_collection.ResultCollection