Mondaic

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

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

Result functions.

Functions

collect_mesh_results_from_tcc()

def collect_mesh_results_from_tcc(
    tcc: TaskChainController,
) -> dict[str, FailedMeshChunkResult | MeshChunkResult]: ...

Collect mesh chunk results from a task chain controller.

Parameters
  • tcc TaskChainController — The task chain controller.
Returns dict[str, FailedMeshChunkResult | MeshChunkResult]

collect_results_from_tcc()

def collect_results_from_tcc(
    tcc: TaskChainController,
    event_names: list[str],
    all_result_folders: dict[str, dict[str, pathlib.Path]],
    compute_misfit: bool,
    compute_gradients: bool,
) -> dict[
    str, FailedResult | MisfitResult | MisfitAndGradientResult | WaveformResult
]: ...

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

Parameters
  • tcc 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 dict[str, dict[str, 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, FailedResult | MisfitResult | MisfitAndGradientResult | WaveformResult]