salvus.project.tools.task_chains.compute_misfits_and_gradients.results.misfit_and_gradient_result
A misfit and gradient result object.
Classes
MisfitAndGradientResult
MisfitAndGradientResultclass MisfitAndGradientResult(builtins.object):
def __init__(
self,
event_name: str,
status: Optional[salvus.flow.sites.types.JobStatus],
stdouterr: salvus.flow.sites.task_chain.task_chain_controller.StdOutErr,
misfit_value: float,
result_folder: pathlib.Path,
gradient_simulation_folder: pathlib.Path,
gradient_h5_file: pathlib.Path,
) -> None:
...The results for a misfit and gradient computation for a single event.
Parameters
event_namestr — Name of the event.statusOptional[salvus.flow.sites.types.JobStatus] — The task chain status.stdouterrsalvus.flow.sites.task_chain.task_chain_controller.StdOutErr — stdout, stderr, and timing information.misfit_valuefloat — The misfit value.result_folderpathlib.Path — The folder of these results.gradient_simulation_folderpathlib.Path — The folder of the gradient simulation output.gradient_h5_filepathlib.Path — Path to the gradient file.