Mondaic
This API reference is not for the latest stable Salvus version.

salvus.project.tools.task_chains.prebuilt_workflows.results.functions

Functions

collect_results_from_tcc()

def collect_results_from_tcc(
    tcc: salvus.flow.executors.task_chain.task_chain_controller.TaskChainController,
    event_names: List[str],
    all_result_folders: List[pathlib.Path],
    compute_misfit: bool,
    compute_gradients: bool,
) -> Dict[
    str,
    Union[
        salvus.project.tools.task_chains.prebuilt_workflows.results.failed_result.FailedResult,
        salvus.project.tools.task_chains.prebuilt_workflows.results.misfit_result.MisfitResult,
        salvus.project.tools.task_chains.prebuilt_workflows.results.misfit_and_gradient_result.MisfitAndGradientResult,
        salvus.project.tools.task_chains.prebuilt_workflows.results.waveform_result.WaveformResult,
    ],
]: ...

This function will collect all results from a finished task chain controller.

Parameters
  • tcc salvus.flow.executors.task_chain.task_chain_controller.TaskChainController — The task chain controller.
  • event_names List[str] — Names of all events. Also the names of the tasks in the task chain controller.
  • all_result_folders List[pathlib.Path] — Folders where all the results are stored.
  • compute_misfit bool — True if a misfit has been computed.
  • compute_gradients bool — True if gradients have been computed.
Returns Dict[str, Union[salvus.project.tools.task_chains.prebuilt_workflows.results.failed_result.FailedResult, salvus.project.tools.task_chains.prebuilt_workflows.results.misfit_result.MisfitResult, salvus.project.tools.task_chains.prebuilt_workflows.results.misfit_and_gradient_result.MisfitAndGradientResult, salvus.project.tools.task_chains.prebuilt_workflows.results.waveform_result.WaveformResult]]