salvus.project.tools.task_chains.prebuilt_workflows.results.functions
Functions
collect_results_from_tcc()
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
tccsalvus.flow.executors.task_chain.task_chain_controller.TaskChainController — The task chain controller.event_namesList[str] — Names of all events. Also the names of the tasks in the task chain controller.all_result_foldersList[pathlib.Path] — Folders where all the results are stored.compute_misfitbool — True if a misfit has been computed.compute_gradientsbool — 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]]